From a5680acbe86c0e01295f9f3a475f6ae0e7e1bdb0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 16 Apr 2013 20:40:23 +0400 Subject: [PATCH] replace split with explode --- classes/pref/feeds.php | 8 ++++---- classes/pref/filters.php | 2 +- classes/pref/labels.php | 6 +++--- classes/pref/users.php | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index c5d6245f..9dc51555 100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -1097,7 +1097,7 @@ class Pref_Feeds extends Handler_Protected { function remove() { - $ids = split(",", db_escape_string($this->link, $_REQUEST["ids"])); + $ids = explode(",", db_escape_string($this->link, $_REQUEST["ids"])); foreach ($ids as $id) { Pref_Feeds::remove_feed($this->link, $id, $_SESSION["uid"]); @@ -1114,7 +1114,7 @@ class Pref_Feeds extends Handler_Protected { function rescore() { require_once "rssfuncs.php"; - $ids = split(",", db_escape_string($this->link, $_REQUEST["ids"])); + $ids = explode(",", db_escape_string($this->link, $_REQUEST["ids"])); foreach ($ids as $id) { @@ -1220,7 +1220,7 @@ class Pref_Feeds extends Handler_Protected { } function categorize() { - $ids = split(",", db_escape_string($this->link, $_REQUEST["ids"])); + $ids = explode(",", db_escape_string($this->link, $_REQUEST["ids"])); $cat_id = db_escape_string($this->link, $_REQUEST["cat_id"]); @@ -1244,7 +1244,7 @@ class Pref_Feeds extends Handler_Protected { } function removeCat() { - $ids = split(",", db_escape_string($this->link, $_REQUEST["ids"])); + $ids = explode(",", db_escape_string($this->link, $_REQUEST["ids"])); foreach ($ids as $id) { $this->remove_feed_category($this->link, $id, $_SESSION["uid"]); } diff --git a/classes/pref/filters.php b/classes/pref/filters.php index 4be1cdae..586626dd 100644 --- a/classes/pref/filters.php +++ b/classes/pref/filters.php @@ -482,7 +482,7 @@ class Pref_Filters extends Handler_Protected { function remove() { - $ids = split(",", db_escape_string($this->link, $_REQUEST["ids"])); + $ids = explode(",", db_escape_string($this->link, $_REQUEST["ids"])); foreach ($ids as $id) { db_query($this->link, "DELETE FROM ttrss_filters2 WHERE id = '$id' AND owner_uid = ". $_SESSION["uid"]); diff --git a/classes/pref/labels.php b/classes/pref/labels.php index b45354c9..15fa7b20 100644 --- a/classes/pref/labels.php +++ b/classes/pref/labels.php @@ -119,7 +119,7 @@ class Pref_Labels extends Handler_Protected { function colorset() { $kind = db_escape_string($this->link, $_REQUEST["kind"]); - $ids = split(',', db_escape_string($this->link, $_REQUEST["ids"])); + $ids = explode(',', db_escape_string($this->link, $_REQUEST["ids"])); $color = db_escape_string($this->link, $_REQUEST["color"]); $fg = db_escape_string($this->link, $_REQUEST["fg"]); $bg = db_escape_string($this->link, $_REQUEST["bg"]); @@ -149,7 +149,7 @@ class Pref_Labels extends Handler_Protected { } function colorreset() { - $ids = split(',', db_escape_string($this->link, $_REQUEST["ids"])); + $ids = explode(',', db_escape_string($this->link, $_REQUEST["ids"])); foreach ($ids as $id) { db_query($this->link, "UPDATE ttrss_labels2 SET @@ -213,7 +213,7 @@ class Pref_Labels extends Handler_Protected { function remove() { - $ids = split(",", db_escape_string($this->link, $_REQUEST["ids"])); + $ids = explode(",", db_escape_string($this->link, $_REQUEST["ids"])); foreach ($ids as $id) { label_remove($this->link, $id, $_SESSION["uid"]); diff --git a/classes/pref/users.php b/classes/pref/users.php index 891a69a5..bd2fff73 100644 --- a/classes/pref/users.php +++ b/classes/pref/users.php @@ -202,7 +202,7 @@ class Pref_Users extends Handler_Protected { } function remove() { - $ids = split(",", db_escape_string($this->link, $_REQUEST["ids"])); + $ids = explode(",", db_escape_string($this->link, $_REQUEST["ids"])); foreach ($ids as $id) { if ($id != $_SESSION["uid"] && $id != 1) { @@ -367,7 +367,7 @@ class Pref_Users extends Handler_Protected { if ($user_search) { - $user_search = split(" ", $user_search); + $user_search = explode(" ", $user_search); $tokens = array(); foreach ($user_search as $token) { -- 2.39.5