From 5b4f936d925c9369af78426ec52de5b050650ae2 Mon Sep 17 00:00:00 2001 From: Nick Liu Date: Sun, 28 Jan 2018 06:27:29 -0600 Subject: [PATCH] file_inspector::inspect() optional arguments file_inspector::inspect() now works in PHP 7 because pass-by-reference variables are optional now as they were intended. Fixes: #3013 --- e107_admin/fileinspector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 e107_admin/fileinspector.php diff --git a/e107_admin/fileinspector.php b/e107_admin/fileinspector.php old mode 100644 new mode 100755 index f2866719d..23bb95988 --- a/e107_admin/fileinspector.php +++ b/e107_admin/fileinspector.php @@ -569,7 +569,7 @@ class file_inspector { // $dir // &$tree_end // &$parent_expand - function inspect($list, $deprecated, $level, $dir, &$tree_end, &$parent_expand) + function inspect($list, $deprecated, $level, $dir, &$tree_end = null, &$parent_expand = null) { global $coredir; @@ -1707,4 +1707,4 @@ i.fa-folder-open-o, i.fa-times-circle-o { cursor:pointer } return $text; } -?> \ No newline at end of file +?>