From: Evan Prodromou Date: Sun, 10 Apr 2011 22:40:28 +0000 (-0400) Subject: Fix clone of null value X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4742a2a87f4062cafb0828ee3ecd09b305c40ba9;p=quix0rs-gnu-social.git Fix clone of null value --- diff --git a/classes/Notice.php b/classes/Notice.php index d18ac2e536..0f2006e143 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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); + } } }