From ef8060668c8f97c283719f964a42a67dd735ac3a Mon Sep 17 00:00:00 2001 From: SJ Date: Tue, 11 Sep 2012 14:55:23 +0200 Subject: [PATCH] fixed a typo Call-time pass-by-reference issue --- webui/model/folder/folder.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webui/model/folder/folder.php b/webui/model/folder/folder.php index 5ad5ee5f..25ad494d 100644 --- a/webui/model/folder/folder.php +++ b/webui/model/folder/folder.php @@ -62,7 +62,7 @@ class ModelFolderFolder extends Model { if(isset($query->rows)) { foreach ($query->rows as $q) { array_push($arr, $q['id']); - $this->get_sub_folders($q['id'], &$arr); + $this->get_sub_folders($q['id'], $arr); } } @@ -70,13 +70,13 @@ class ModelFolderFolder extends Model { } - private function get_sub_folders($id = 0, $arr = array()) { + private function get_sub_folders($id = 0, &$arr = array()) { $query = $this->db->query("SELECT id FROM `" . TABLE_FOLDER . "` WHERE parent_id=?", array($id)); if(isset($query->rows)) { foreach ($query->rows as $q) { array_push($arr, $q['id']); - $this->get_sub_folders($q['id'], &$arr); + $this->get_sub_folders($q['id'], $arr); } }