From b685e4026b679e6b32b851dad0e40952903b0dea Mon Sep 17 00:00:00 2001 From: Pathologic Date: Fri, 28 Apr 2023 01:50:57 +0300 Subject: [PATCH] add default values to prevent error with default mm_rules --- showimagetvs.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/showimagetvs.php b/showimagetvs.php index 5090a55..f6b9fb7 100644 --- a/showimagetvs.php +++ b/showimagetvs.php @@ -10,7 +10,10 @@ * @copyright 2014–2020 DD Group {@link https://DivanDesign.biz } */ -function mm_widget_showimagetvs($params){ +function mm_widget_showimagetvs($params = [ + 'maxWidth' => 150, + 'maxHeight' => 150 +]){ //For backward compatibility if ( !is_array($params) &&