fix the contorted update logic on the network page

This commit is contained in:
friendica
2013-01-04 19:24:17 -08:00
parent e208e07e35
commit 70b6f989dd
2 changed files with 24 additions and 21 deletions

View File

@@ -347,9 +347,12 @@ function zot_gethub($arr) {
dbesc($arr['url']),
dbesc($arr['url_sig'])
);
if($r && count($r))
if($r && count($r)) {
logger('zot_gethub: found', LOGGER_DEBUG);
return $r[0];
}
}
logger('zot_gethub: not found', LOGGER_DEBUG);
return null;
}