From 4742a2a87f4062cafb0828ee3ecd09b305c40ba9 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 10 Apr 2011 18:40:28 -0400 Subject: [PATCH] Fix clone of null value --- classes/Notice.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); + } } } -- 2.39.5