From 9b8dfb7dd2d697fa1c4e4478a3ac090e127df2d6 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 5 Mar 2017 18:50:15 -0600 Subject: [PATCH] Bugfix: operating on non-existent array index in p_s_split() of c_base_utf8 This causes PHP to crash as it does not like operating against non-existant indexes. --- common/base/classes/base_utf8.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/base/classes/base_utf8.php b/common/base/classes/base_utf8.php index 16e630e..2b0cc5c 100644 --- a/common/base/classes/base_utf8.php +++ b/common/base/classes/base_utf8.php @@ -1002,7 +1002,7 @@ class c_base_utf8 { unset($array); } - if ($split[0] === '') { + if (empty($split) || $split[0] === '') { return array(); } -- 1.8.3.1