]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix clone of null value
authorEvan Prodromou <evan@status.net>
Sun, 10 Apr 2011 22:40:28 +0000 (18:40 -0400)
committerEvan Prodromou <evan@status.net>
Sun, 10 Apr 2011 22:40:28 +0000 (18:40 -0400)
classes/Notice.php

index d18ac2e536eb860a4c1f765ca63b5d32c67b3ed8..0f2006e14394b12b19c2e1de286461bfd4707ecb 100644 (file)
@@ -1162,7 +1162,9 @@ class Notice extends Memcached_DataObject
         if($ptag->find()) {
             while($ptag->fetch()) {
                 $plist = Profile_list::getByTaggerAndTag($ptag->tagger, $ptag->tag);
-                $ptags[] = clone($plist);
+                if (!empty($plist)) {
+                    $ptags[] = clone($plist);
+                }
             }
         }