Fix clone of null value

This commit is contained in:
Evan Prodromou 2011-04-10 18:40:28 -04:00
parent dcca04fd6f
commit 4742a2a87f
1 changed files with 3 additions and 1 deletions

View 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);
}
}
}