TwitterBridge: don't array_merge() non-arrays

Fixes: ErrorException: [2] array_merge(): Argument #2 is not an array
This commit is contained in:
Chimo 2015-02-08 20:11:50 -05:00
parent 8616055959
commit 74d4e2fa10

View File

@ -183,9 +183,11 @@ class SyncTwitterFriendsDaemon extends ParallelizingDaemon
"of Twitter user $flink->foreign_id friends.");
continue;
} else {
if (is_array($more_friends)) {
$friends = array_merge($friends, $more_friends);
}
}
}
return $friends;
}