From 97fe37081f3c510f4043098a81ec42c925b267a6 Mon Sep 17 00:00:00 2001 From: Hani Rouatbi <23016064+hanirouatbi1@users.noreply.github.com> Date: Wed, 24 Aug 2022 23:48:24 +0100 Subject: [PATCH] Update style.php Uninitialized string offset 0 when $var2 is empty --- includes/style.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/style.php b/includes/style.php index 8150a42..1183f92 100755 --- a/includes/style.php +++ b/includes/style.php @@ -194,7 +194,7 @@ class kleeja_style $var2 = trim($arr[3]); //check for type - if ($var2[0] != '$' && ! preg_match('/[0-9]/', $var2)) { + if (strpos($var2, '$')!==0 && ! preg_match('/[0-9]/', $var2)) { $var2 = '"' . str_replace('"', '\"', $var2) . '"'; }