From e7b72de33ca3f9b32972d6e480967d0989cdf956 Mon Sep 17 00:00:00 2001 From: fusionate Date: Wed, 10 May 2023 22:59:12 +0000 Subject: [PATCH] Modal [Class]: Updates for PHP 8.1 --- resources/classes/modal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/classes/modal.php b/resources/classes/modal.php index fe3ce139fd..e5d61a9f68 100644 --- a/resources/classes/modal.php +++ b/resources/classes/modal.php @@ -53,7 +53,7 @@ if (!class_exists('modal')) { $array['message'] = $text['confirm-delete']; break; default: //general - $array['title'] = $array['title'] ? $array['title'] : $text['modal_title-confirmation']; + $array['title'] = !empty($array['title']) ? $array['title'] : $text['modal_title-confirmation']; } //prefix cancel button to action $array['actions'] = button::create(['type'=>'button','label'=>$text['button-cancel'],'icon'=>$_SESSION['theme']['button_icon_cancel'],'collapse'=>'never','onclick'=>'modal_close(); '.($array['onclose'] ?? '')]).$array['actions'];