Fix ArrayType class

This commit is contained in:
Timothy Warren 2015-11-09 11:49:51 -05:00
parent 17a335275c
commit a18f1926d9
1 changed files with 6 additions and 1 deletions

View File

@ -205,7 +205,12 @@ class ArrayType {
{
if (empty($pos) || ! is_array($pos))
{
return NULL;
// Directly returning a NULL value here will
// result in a reference error. This isn't
// excess code, just what's required for this
// unique situation.
$pos = NULL;
return $pos;
}
$pos =& $pos[$level];
}