From 4f5c259078d6c2957724f8862be18053f2762629 Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 15 Sep 2022 08:55:41 +0200 Subject: [PATCH] fix PHP 8.x error, if previous non-numeric textsize was set --- pixelegg/inc/class.pixelegg_framework.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pixelegg/inc/class.pixelegg_framework.inc.php b/pixelegg/inc/class.pixelegg_framework.inc.php index ed7f53a73d..ab7f1571a0 100755 --- a/pixelegg/inc/class.pixelegg_framework.inc.php +++ b/pixelegg/inc/class.pixelegg_framework.inc.php @@ -121,7 +121,7 @@ class pixelegg_framework extends Api\Framework\Ajax } "; $textsize = $GLOBALS['egw_info']['user']['preferences']['common']['textsize']; - if (!empty($textsize) && $textsize != '12') + if (!empty($textsize) && is_numeric($textsize) && $textsize != '12') { $iconSize = $textsize+4; $ret['app_css'] .= " @@ -235,4 +235,4 @@ body #egw_fw_sidebar #egw_fw_sidemenu .egw_fw_ui_category_active{background-colo return parent::login_screen($extra_vars, $change_passwd); } -} +} \ No newline at end of file