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