From 5d43ef2cd0780b42f4a675d37b26f9080624372e Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Fri, 31 May 2002 18:12:56 +0000 Subject: [PATCH] Be able to handle strings as well as arrays in _multipleToStruct() --- pear/System.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pear/System.php b/pear/System.php index 0f35eb1220..3fd25e082f 100644 --- a/pear/System.php +++ b/pear/System.php @@ -147,7 +147,8 @@ class System function _multipleToStruct($files) { $struct = array('dirs' => array(), 'files' => array()); - foreach($files as $file) { + settype($files, 'array'); + foreach ($files as $file) { if (is_dir($file)) { $tmp = System::_dirToStruct($file, 0); $struct = array_merge_recursive($tmp, $struct); -- 2.50.1