]> git.mxchange.org Git - friendica.git/commitdiff
Issue 5760: Avoid a non numeric value for "tt"
authorMichael <heluecht@pirati.ca>
Sat, 22 Sep 2018 14:17:14 +0000 (14:17 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 22 Sep 2018 14:17:14 +0000 (14:17 +0000)
include/conversation.php

index 45e5d1caa3832ad98e04544a4ca71f2283afab3d..e41b697b547824d869ad487107b05503bb80e956 100644 (file)
@@ -1454,7 +1454,7 @@ function get_responses(array $conv_responses, array $response_verbs, $ob, array
        $ret = [];
        foreach ($response_verbs as $v) {
                $ret[$v] = [];
-               $ret[$v]['count'] = defaults($conv_responses[$v], $item['uri'], '');
+               $ret[$v]['count'] = defaults($conv_responses[$v], $item['uri'], 0);
                $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) {