Merge pull request #5783 from annando/issue-5768
Issue 5760: Avoid a non numeric value for "tt"
This commit is contained in:
commit
9386c54b9c
|
@ -1454,7 +1454,7 @@ function get_responses(array $conv_responses, array $response_verbs, $ob, array
|
||||||
$ret = [];
|
$ret = [];
|
||||||
foreach ($response_verbs as $v) {
|
foreach ($response_verbs as $v) {
|
||||||
$ret[$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]['list'] = defaults($conv_responses[$v], $item['uri'] . '-l', []);
|
||||||
$ret[$v]['self'] = defaults($conv_responses[$v], $item['uri'] . '-self', '0');
|
$ret[$v]['self'] = defaults($conv_responses[$v], $item['uri'] . '-self', '0');
|
||||||
if (count($ret[$v]['list']) > MAX_LIKERS) {
|
if (count($ret[$v]['list']) > MAX_LIKERS) {
|
||||||
|
|
Loading…
Reference in a new issue