1
1
Fork 0

Merge pull request #4536 from MrPetovan/bug/fix-countable-warning

[PHP 7.2] Fix missing Countable warning
This commit is contained in:
Tobias Diekershoff 2018-03-03 15:39:28 +01:00 committed by GitHub
commit 2e02e88cf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1645,7 +1645,7 @@ function get_responses($conv_responses, $response_verbs, $ob, $item) {
foreach ($response_verbs as $v) {
$ret[$v] = [];
$ret[$v]['count'] = defaults($conv_responses[$v], $item['uri'], '');
$ret[$v]['list'] = defaults($conv_responses[$v], $item['uri'] . '-l', '');
$ret[$v]['list'] = defaults($conv_responses[$v], $item['uri'] . '-l', []);
$ret[$v]['self'] = defaults($conv_responses[$v], $item['uri'] . '-self', '0');
if (count($ret[$v]['list']) > MAX_LIKERS) {
$ret[$v]['list_part'] = array_slice($ret[$v]['list'], 0, MAX_LIKERS);