From d04f8c826f5283765f52cf6b98b42a1ed8f2d6bc Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 14 Aug 2012 12:18:52 +0400 Subject: [PATCH] remove call-by-reference to comply with php 5.4 --- classes/pref_feeds.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/pref_feeds.php b/classes/pref_feeds.php index c87b0e549..5e1ac1a3b 100644 --- a/classes/pref_feeds.php +++ b/classes/pref_feeds.php @@ -280,7 +280,7 @@ class Pref_Feeds extends Protected_Handler { (get_pref($this->link, '_PREFS_SHOW_EMPTY_CATS') ? 'false' : 'true')); } - private function process_category_order($data_map, $item_id, $parent_id = false) { + private function process_category_order(&$data_map, $item_id, $parent_id = false) { # print "C: $item_id P: $parent_id\n"; $bare_id = substr($item_id, strpos($item_id, ':')+1); @@ -317,7 +317,7 @@ class Pref_Feeds extends Protected_Handler { owner_uid = " . $_SESSION["uid"]); } else if (strpos($id, "CAT:") === 0) { - $this->process_category_order(&$data_map, $item['_reference'], $item_id); + $this->process_category_order($data_map, $item['_reference'], $item_id); if ($item_id != 'root') { $parent_qpart = db_escape_string($bare_id); @@ -363,7 +363,7 @@ class Pref_Feeds extends Protected_Handler { } } - $this->process_category_order(&$data_map, $root_item); + $this->process_category_order($data_map, $root_item); /* foreach ($data['items'][0]['items'] as $item) { $id = $item['_reference'];