diff options
| author | Tomas V.V.Cox <cox@php.net> | 2002-05-31 18:12:56 +0000 |
|---|---|---|
| committer | Tomas V.V.Cox <cox@php.net> | 2002-05-31 18:12:56 +0000 |
| commit | 5d43ef2cd0780b42f4a675d37b26f9080624372e (patch) | |
| tree | e9e1f3f7283bbfb34e44d2cd325c2803dc3a2539 /pear/System.php | |
| parent | 5cb633933f7d2467960d3b881292c2c2eda3b116 (diff) | |
| download | php-git-5d43ef2cd0780b42f4a675d37b26f9080624372e.tar.gz | |
Be able to handle strings as well as arrays in _multipleToStruct()
Diffstat (limited to 'pear/System.php')
| -rw-r--r-- | pear/System.php | 3 |
1 files changed, 2 insertions, 1 deletions
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); |
