Update style.php

Uninitialized string offset 0 when $var2 is empty
This commit is contained in:
Hani Rouatbi
2022-08-24 23:48:24 +01:00
committed by GitHub
parent 0bf91fb4a9
commit 97fe37081f

View File

@@ -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) . '"';
}