more data checking, cleans up some infrequent php errors

This commit is contained in:
friendica 2011-12-19 16:51:57 -08:00
commit 79f3bbbf2b
2 changed files with 10 additions and 0 deletions

View file

@ -58,6 +58,9 @@ function poco_load($cid,$uid = 0,$url = null) {
logger('poco_load: json: ' . print_r($j,true),LOGGER_DATA);
if(! isset($j->entry))
return;
$total = 0;
foreach($j->entry as $entry) {