From: Andrew Dolgov Date: Tue, 14 Aug 2012 08:18:52 +0000 (+0400) Subject: remove call-by-reference to comply with php 5.4 X-Git-Tag: 1.6.0~167 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d04f8c826f5283765f52cf6b98b42a1ed8f2d6bc;p=tt-rss.git remove call-by-reference to comply with php 5.4 --- diff --git a/classes/pref_feeds.php b/classes/pref_feeds.php index c87b0e54..5e1ac1a3 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'];