mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +01:00
Update style.php
Uninitialized string offset 0 when $var2 is empty
This commit is contained in:
@@ -194,7 +194,7 @@ class kleeja_style
|
|||||||
$var2 = trim($arr[3]);
|
$var2 = trim($arr[3]);
|
||||||
|
|
||||||
//check for type
|
//check for type
|
||||||
if ($var2[0] != '$' && ! preg_match('/[0-9]/', $var2)) {
|
if (strpos($var2, '$')!==0 && ! preg_match('/[0-9]/', $var2)) {
|
||||||
$var2 = '"' . str_replace('"', '\"', $var2) . '"';
|
$var2 = '"' . str_replace('"', '\"', $var2) . '"';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user