Skip to content

Commit

Permalink
Horde_Exception already provides this variable
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jan 29, 2014
1 parent fb26dd8 commit 838c76b
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions imp/lib/Compose/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ class IMP_Compose_Exception extends IMP_Exception
*/
public $tied_identity = null;

/**
* If true, exception was already logged.
*
* @var boolean
*/
protected $_logged = false;

/**
* Creates a new Exception object and immediately logs the message.
*
Expand Down Expand Up @@ -73,12 +66,12 @@ static public function createAndLog()
*/
public function log($level = 'ERR')
{
if ($this->_logged) {
if ($this->logged) {
return false;
}

Horde::log($this, $level);
$this->_logged = true;
$this->logged = true;

return true;
}
Expand Down

0 comments on commit 838c76b

Please sign in to comment.