Bug in catch(Exception) - parameter wrongly written

This commit is contained in:
abjectio 2015-10-16 23:48:05 +02:00
parent 626333a59e
commit aa5bbdf6e5
1 changed files with 6 additions and 6 deletions

View File

@ -2775,7 +2775,7 @@ class Notice extends Managed_DataObject
public function getParent() public function getParent()
{ {
$reply_to_id = NULL; $reply_to_id = null;
if (empty($this->reply_to)) { if (empty($this->reply_to)) {
throw new NoParentNoticeException($this); throw new NoParentNoticeException($this);
@ -2787,7 +2787,7 @@ class Notice extends Managed_DataObject
// the timeline will not display correctly. // the timeline will not display correctly.
try { try {
$reply_to_id = self::getByID($this->reply_to); $reply_to_id = self::getByID($this->reply_to);
} catch(Exception e$){ } catch(Exception $e){
throw new NoParentNoticeException($this); throw new NoParentNoticeException($this);
} }