From 35c827ea6ac47b72f0b47a9a3fa9194066bf5cb4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 6 Jun 2023 00:19:55 +0200 Subject: [PATCH] Fix warning --- htdocs/core/js/lib_foot.js.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/js/lib_foot.js.php b/htdocs/core/js/lib_foot.js.php index ae0de6ad0cb..5ed7dfb2eb1 100644 --- a/htdocs/core/js/lib_foot.js.php +++ b/htdocs/core/js/lib_foot.js.php @@ -128,7 +128,7 @@ if (empty($conf->dol_no_mouse_hover)) { print ' jQuery(".classfortooltiponclicktext").dialog({ closeOnEscape: true, classes: { "ui-dialog": "highlight" }, - maxHeight: window.innerHeight-60, width: '.($conf->browser->layout == 'phone' ? max($_SESSION['dol_screenwidth'] - 20, 320) : 700).', + maxHeight: window.innerHeight-60, width: '.($conf->browser->layout == 'phone' ? max((empty($_SESSION['dol_screenwidth']) ? 0 : $_SESSION['dol_screenwidth']) - 20, 320) : 700).', modal: true, autoOpen: false }).css("z-index: 5000");