]> git.mxchange.org Git - friendica.git/commitdiff
[PHP 7.2] Fix missing Countable warning
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 3 Mar 2018 13:48:30 +0000 (08:48 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Sat, 3 Mar 2018 13:48:30 +0000 (08:48 -0500)
include/conversation.php

index ecd2e4df9ef09ad20dbb69fb3370c19731ecd41a..dc99a831968dfb214c3b0ffdefde45416232460d 100644 (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);