From: Andrew Dolgov Date: Wed, 14 Dec 2011 08:04:52 +0000 (+0400) Subject: fix feed editor X-Git-Tag: 1.5.8~14 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3a76e2a25cf869e0d94021461545e0d8f9ece9d4;p=tt-rss.git fix feed editor --- diff --git a/classes/pref_feeds.php b/classes/pref_feeds.php index 783d29f7..eebd25c6 100644 --- a/classes/pref_feeds.php +++ b/classes/pref_feeds.php @@ -686,11 +686,11 @@ class Pref_Feeds extends Protected_Handler { } function batchEditSave() { - return editsaveops(true); + return $this->editsaveops(true); } function editSave() { - return editsaveops(false); + return $this->editsaveops(false); } function editsaveops($batch) { @@ -740,7 +740,7 @@ class Pref_Feeds extends Protected_Handler { $cache_images_qpart = ""; } - if ($method == "editSave") { + if (!$batch) { $result = db_query($this->link, "UPDATE ttrss_feeds SET $category_qpart @@ -759,7 +759,7 @@ class Pref_Feeds extends Protected_Handler { update_method = '$update_method' WHERE id = '$feed_id' AND owner_uid = " . $_SESSION["uid"]); - } else if ($batch) { + } else { $feed_data = array(); foreach (array_keys($_POST) as $k) {