Merge pull request #239 from annando/master
app.net: Avoid warnings if site is not reachablepull/240/head
commit
299c1ccd25
|
@ -690,8 +690,12 @@ function appnet_fetchstream($a, $uid) {
|
|||
}
|
||||
catch (AppDotNetException $e) {
|
||||
logger("appnet_fetchstream: Error fetching stream for user ".$uid." ".appnet_error($e->getMessage()));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!is_array($stream))
|
||||
$stream = array();
|
||||
|
||||
$stream = array_reverse($stream);
|
||||
foreach ($stream AS $post) {
|
||||
$postarray = appnet_createpost($a, $uid, $post, $me, $user, $ownid, true);
|
||||
|
@ -744,8 +748,12 @@ function appnet_fetchstream($a, $uid) {
|
|||
}
|
||||
catch (AppDotNetException $e) {
|
||||
logger("appnet_fetchstream: Error fetching mentions for user ".$uid." ".appnet_error($e->getMessage()));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!is_array($mentions))
|
||||
$mentions = array();
|
||||
|
||||
$mentions = array_reverse($mentions);
|
||||
foreach ($mentions AS $post) {
|
||||
$postarray = appnet_createpost($a, $uid, $post, $me, $user, $ownid, false);
|
||||
|
|
Loading…
Reference in New Issue