From 8ff08b9a9559d583fd4bd7466940e08b9ff3521f Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 27 Mar 2015 23:56:27 +0100 Subject: [PATCH] Opps, PEAR sucks. Need to call find() before fetch() ... :-( Signed-off-by: Roland Haeder --- classes/Notice_tag.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Notice_tag.php b/classes/Notice_tag.php index 8e1c4ec128..24404aea58 100644 --- a/classes/Notice_tag.php +++ b/classes/Notice_tag.php @@ -97,10 +97,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; } -- 2.39.5