forked from GNUsocial/gnu-social
Fix clone of null value
This commit is contained in:
@@ -1162,7 +1162,9 @@ class Notice extends Memcached_DataObject
|
|||||||
if($ptag->find()) {
|
if($ptag->find()) {
|
||||||
while($ptag->fetch()) {
|
while($ptag->fetch()) {
|
||||||
$plist = Profile_list::getByTaggerAndTag($ptag->tagger, $ptag->tag);
|
$plist = Profile_list::getByTaggerAndTag($ptag->tagger, $ptag->tag);
|
||||||
$ptags[] = clone($plist);
|
if (!empty($plist)) {
|
||||||
|
$ptags[] = clone($plist);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user