Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Commit bf8774f

Browse files
committed
ISLANDORA-1537: PHP 5.6 Warning in array_traverse_path()
Notice when using PHP 5.6: Only variable references should be returned by reference in array_traverse_path(). This patch returns a variable with the value of FALSE, rather than returning FALSE itself.
1 parent be8733a commit bf8774f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Array.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ function &array_traverse_path(array &$array, array $indices) {
5454
$point = &$array;
5555
foreach ($indices as $index) {
5656
if (empty($point[$index])) {
57-
return FALSE;
57+
$result = FALSE;
58+
return $result;
5859
}
5960
$point = &$point[$index];
6061
}

0 commit comments

Comments
 (0)