Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
Showing only changes of commit ff28b40c9e - Show all commits

View File

@ -205,7 +205,12 @@ class ArrayType {
{ {
if (empty($pos) || ! is_array($pos)) 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]; $pos =& $pos[$level];
} }