From: Roland Haeder Date: Fri, 27 Mar 2015 22:56:27 +0000 (+0100) Subject: Opps, PEAR sucks. Need to call find() before fetch() ... :-( X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b15f5f0cafc08c9b63090c5b4f7494fca0634238;p=quix0rs-gnu-social.git Opps, PEAR sucks. Need to call find() before fetch() ... :-( Signed-off-by: Roland Haeder --- diff --git a/classes/Notice_tag.php b/classes/Notice_tag.php index ccf00cbb5d..6ee30d0d5a 100644 --- a/classes/Notice_tag.php +++ b/classes/Notice_tag.php @@ -96,10 +96,10 @@ class Notice_tag extends Managed_DataObject $notice = new Notice(); $notice->id = $this->notice_id; - /* NOISY-DEBUG: */ common_debug('[' . __METHOD__ . ':' . __LINE__ . '] this->tag=' . $this->tag . ',this->notice_id=' . $this->notice_id . ' - Calling fetch() ...'); + /* NOISY-DEBUG: */ common_debug('[' . __METHOD__ . ':' . __LINE__ . '] this->tag=' . $this->tag . ',this->notice_id=' . $this->notice_id . ' - Calling find() ... fetch() ...'); // Fetch notice - if (!$notice->fetch()) { + if ((!$notice->findOQ()) || (!$notice->fetch())) { // No longer valid, so better don't allow to see it return FALSE; }