aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-02-16 14:35:01 +0100
committerMario Vavti <mario@mariovavti.com>2021-02-16 14:35:01 +0100
commit281b2261aff9919e208562466e7969ccae26d9a0 (patch)
tree6c3bcdb98529a5108b1be13b7cf7f8f7f38c957d
parent3eaf0b7f23aded75894848664420658e429dce5a (diff)
downloadvolse-hubzilla-281b2261aff9919e208562466e7969ccae26d9a0.tar.gz
volse-hubzilla-281b2261aff9919e208562466e7969ccae26d9a0.tar.bz2
volse-hubzilla-281b2261aff9919e208562466e7969ccae26d9a0.zip
reduce loglevel until the most glaring php8 issues will be resolved
-rw-r--r--Zotlabs/Render/SmartyInterface.php2
-rw-r--r--include/conversation.php6
2 files changed, 3 insertions, 5 deletions
diff --git a/Zotlabs/Render/SmartyInterface.php b/Zotlabs/Render/SmartyInterface.php
index a40effecf..d80ea3f3a 100644
--- a/Zotlabs/Render/SmartyInterface.php
+++ b/Zotlabs/Render/SmartyInterface.php
@@ -35,7 +35,7 @@ class SmartyInterface extends Smarty {
$this->right_delimiter = App::get_template_rdelim('smarty3');
// Don't report errors so verbosely
- $this->error_reporting = E_ALL & (~E_NOTICE);
+ $this->error_reporting = E_ALL & ~E_WARNING & ~E_NOTICE;
}
function parsed($template = '') {
diff --git a/include/conversation.php b/include/conversation.php
index 1b0db52e3..b22093951 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1725,13 +1725,11 @@ function get_responses($conv_responses,$response_verbs,$ob,$item) {
$ret = array();
foreach($response_verbs as $v) {
$ret[$v] = array();
- $ret[$v]['count'] = ((x($conv_responses[$v],$item['mid'])) ? $conv_responses[$v][$item['mid']] : '');
+ $ret[$v]['count'] = ((x($conv_responses[$v],$item['mid'])) ? $conv_responses[$v][$item['mid']] : 0);
$ret[$v]['list'] = ((x($conv_responses[$v],$item['mid'])) ? $conv_responses[$v][$item['mid'] . '-l'] : '');
$ret[$v]['button'] = get_response_button_text($v,$ret[$v]['count']);
$ret[$v]['title'] = $conv_responses[$v]['title'];
- if($ret[$v]['count'] > MAX_LIKERS) {
- $ret[$v]['modal'] = true;
- }
+ $ret[$v]['modal'] = (($ret[$v]['count'] > MAX_LIKERS) ? true : false);
}
$count = 0;