]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Notice_tag.php
Opps, PEAR sucks. Need to call find() before fetch() ... :-(
[quix0rs-gnu-social.git] / classes / Notice_tag.php
index ccf00cbb5d42b6e8415f4a67e75c8a185f1dcdda..6ee30d0d5a418bf6ff771c01cf145b41deda14e8 100644 (file)
@@ -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;
         }