fix feed editor

This commit is contained in:
Andrew Dolgov 2011-12-14 12:04:52 +04:00
parent 09e8bdfd18
commit 3a76e2a25c
1 changed files with 4 additions and 4 deletions

View File

@ -686,11 +686,11 @@ class Pref_Feeds extends Protected_Handler {
} }
function batchEditSave() { function batchEditSave() {
return editsaveops(true); return $this->editsaveops(true);
} }
function editSave() { function editSave() {
return editsaveops(false); return $this->editsaveops(false);
} }
function editsaveops($batch) { function editsaveops($batch) {
@ -740,7 +740,7 @@ class Pref_Feeds extends Protected_Handler {
$cache_images_qpart = ""; $cache_images_qpart = "";
} }
if ($method == "editSave") { if (!$batch) {
$result = db_query($this->link, "UPDATE ttrss_feeds SET $result = db_query($this->link, "UPDATE ttrss_feeds SET
$category_qpart $category_qpart
@ -759,7 +759,7 @@ class Pref_Feeds extends Protected_Handler {
update_method = '$update_method' update_method = '$update_method'
WHERE id = '$feed_id' AND owner_uid = " . $_SESSION["uid"]); WHERE id = '$feed_id' AND owner_uid = " . $_SESSION["uid"]);
} else if ($batch) { } else {
$feed_data = array(); $feed_data = array();
foreach (array_keys($_POST) as $k) { foreach (array_keys($_POST) as $k) {