From: Kevin Day Date: Mon, 6 Mar 2017 00:50:15 +0000 (-0600) Subject: Bugfix: operating on non-existent array index in p_s_split() of c_base_utf8 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=9b8dfb7dd2d697fa1c4e4478a3ac090e127df2d6;p=koopa 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. --- 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(); }