Skip to content

Commit

Permalink
Can't use empty() in this way.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Apr 21, 2015
1 parent 91b901e commit 28a9405
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kronolith/lib/Calendar/Internal.php
Expand Up @@ -138,7 +138,8 @@ public function caldavUrl()
*/
public function isSystem()
{
return empty($this->owner()) && ($this->_share->get('type') == Kronolith::SHARE_TYPE_USER);
$owner = $this->owner();
return empty($owner) && ($this->_share->get('type') == Kronolith::SHARE_TYPE_USER);
}

/**
Expand Down

0 comments on commit 28a9405

Please sign in to comment.