Skip to content
Snippets Groups Projects
Commit 88f92d3b authored by Alex Barth's avatar Alex Barth
Browse files

Switch back to using a simple db_query() style select query.

parent 582ece8e
No related branches found
No related tags found
No related merge requests found
...@@ -30,10 +30,7 @@ function feeds_cron() { ...@@ -30,10 +30,7 @@ function feeds_cron() {
if ($importers = feeds_reschedule()) { if ($importers = feeds_reschedule()) {
foreach ($importers as $id) { foreach ($importers as $id) {
feeds_importer($id)->schedule(); feeds_importer($id)->schedule();
$rows = db_select('feeds_source') $rows = db_query("SELECT feed_nid FROM {feeds_source} WHERE id = :id", array(':id' => $id));
->fields('feed_nid')
->condition('id', $id)
->execute();
foreach ($rows as $row) { foreach ($rows as $row) {
feeds_source($id, $row->feed_nid)->schedule(); feeds_source($id, $row->feed_nid)->schedule();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment