summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2017-09-12 13:48:05 +0200
committerAleksander Machniak <machniak@kolabsys.com>2017-09-12 13:48:05 +0200
commit9f4605eae5f0dfb17fd4267d1072b5f79771e705 (patch)
treed66edb7f1a1a46413e6c5ec6c582402696f7914b
parent1b605db5f721f86f3b306aabcfce43f3da881013 (diff)
downloadwebadmin-9f4605eae5f0dfb17fd4267d1072b5f79771e705.tar.gz
fix issue with PHP 7.1
Summary: see details in https://git.kolab.org/T2630 Reviewers: #web_administration_panel_developers, machniak Reviewed By: #web_administration_panel_developers, machniak Subscribers: #web_administration_panel_developers Tags: #web_administration_panel Maniphest Tasks: T2630 Differential Revision: https://git.kolab.org/D542
-rw-r--r--lib/kolab_client_output.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kolab_client_output.php b/lib/kolab_client_output.php
index f7bb471..34c8289 100644
--- a/lib/kolab_client_output.php
+++ b/lib/kolab_client_output.php
@@ -145,7 +145,7 @@ class kolab_client_output
$this->tpl->assign($name, $value);
}
- $script = '';
+ $script = array();
if (!empty($this->env)) {
$script[] = 'kadm.env = ' . json_encode($this->env) . ';';
@@ -171,7 +171,7 @@ class kolab_client_output
}
$this->tpl->assign('skin_path', 'skins/' . $this->skin . '/');
- if ($script) {
+ if (!empty($script)) {
$script = "<script type=\"text/javascript\">\n" . implode("\n", $script) . "\n</script>";
$this->tpl->assign('script', $script);
}