From aa5bbdf6e530777ac3e82ec0e7709ccadbb30c35 Mon Sep 17 00:00:00 2001 From: abjectio Date: Fri, 16 Oct 2015 23:48:05 +0200 Subject: [PATCH] Bug in catch(Exception) - parameter wrongly written --- classes/Notice.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/classes/Notice.php b/classes/Notice.php index 78ee18a980..ebbd9e0462 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2775,19 +2775,19 @@ class Notice extends Managed_DataObject public function getParent() { - $reply_to_id = NULL; + $reply_to_id = null; if (empty($this->reply_to)) { throw new NoParentNoticeException($this); } - //The reply_to ID in the table Notice could exist with a number - //however, the replied to notice might not exist in the database. - //Thus we need to catch the exception and throw the NoParentNoticeException else - //the timeline will not display correctly. + // The reply_to ID in the table Notice could exist with a number + // however, the replied to notice might not exist in the database. + // Thus we need to catch the exception and throw the NoParentNoticeException else + // the timeline will not display correctly. try { $reply_to_id = self::getByID($this->reply_to); - } catch(Exception e$){ + } catch(Exception $e){ throw new NoParentNoticeException($this); } -- 2.39.5