diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-05-07 21:00:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-05-07 21:00:36 +0000 |
commit | a161110a6ba10a43df67179263d62f201631e88d (patch) | |
tree | c6b146ed125d82487d6285c259cfb30346c310bc /modules/aggregator | |
parent | 9a62873a4beae8fe620dedcf7ca40954e12cc7cb (diff) | |
download | brdo-a161110a6ba10a43df67179263d62f201631e88d.tar.gz brdo-a161110a6ba10a43df67179263d62f201631e88d.tar.bz2 |
- Applied Michael Caerwyn's "%s -> %d" patch.
- Changed all occurences of '%d' to %d as suggested on the mailing list.
Diffstat (limited to 'modules/aggregator')
-rw-r--r-- | modules/aggregator/aggregator.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index 4e5af2f5e..69abf97bf 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -359,7 +359,7 @@ function import_save_item($edit) { db_query("DELETE FROM item WHERE iid = %d", $edit["iid"]); } else if ($edit["title"] && $edit["link"]) { - db_query("INSERT INTO item (fid, title, link, author, description, attributes, timestamp) VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '%s')", $edit["fid"], $edit["title"], $edit["link"], $edit["author"], $edit["description"], $edit["attributes"], time()); + db_query("INSERT INTO item (fid, title, link, author, description, attributes, timestamp) VALUES (%d, '%s', '%s', '%s', '%s', '%s', %d)", $edit["fid"], $edit["title"], $edit["link"], $edit["author"], $edit["description"], $edit["attributes"], time()); } } @@ -417,7 +417,7 @@ function import_form_feed($edit = array()) { function import_save_feed($edit) { if ($edit["fid"] && $edit["title"]) { - db_query("UPDATE feed SET title = '%s', url = '%s', attributes = '%s', refresh = '%s' WHERE fid = %d", $edit["title"], $edit["url"], $edit["attributes"], $edit["refresh"], $edit["fid"]); + db_query("UPDATE feed SET title = '%s', url = '%s', attributes = '%s', refresh = %d WHERE fid = %d", $edit["title"], $edit["url"], $edit["attributes"], $edit["refresh"], $edit["fid"]); db_query("DELETE FROM item WHERE fid = %d", $edit["fid"]); } else if ($edit["fid"]) { @@ -427,7 +427,7 @@ function import_save_feed($edit) { else if ($edit["title"]) { // a single unique id for bundles and feeds, to use in blocks $next_id = db_next_id("feed_fid"); - db_query("INSERT INTO feed (fid, title, url, attributes, refresh) VALUES (%d, '%s', '%s', '%s', '%s')", $next_id, $edit["title"], $edit["url"], $edit["attributes"], $edit["refresh"]); + db_query("INSERT INTO feed (fid, title, url, attributes, refresh) VALUES (%d, '%s', '%s', '%s', %d)", $next_id, $edit["title"], $edit["url"], $edit["attributes"], $edit["refresh"]); } } |