1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-19 20:21:51 +02:00

Prevent old corrupted linkword prefs from breaking site. ie. CRITICAL ERROR 3 and 4.

This commit is contained in:
Cameron 2019-06-01 15:51:05 -07:00
parent 4bf9c89eaa
commit 248dc0408b

View File

@ -486,7 +486,7 @@ class e_array {
{
$ArrayData = stripslashes($ArrayData);
}
elseif(strpos($ArrayData,'array') === 0 && strpos($ArrayData,"\' => \'") !== false)
elseif(strpos($ArrayData,'array') === 0 && strpos($ArrayData,"\' => \'") !== false && strpos($ArrayData,"' => 'array") === false) // FIX for old corrupted link-words preference.
{
$ArrayData = stripslashes($ArrayData);
}