forked from friendica/friendica-addons
fix sql syntax
This commit is contained in:
parent
04d5877bc7
commit
f0217ccc01
|
@ -172,8 +172,7 @@ function retriever_retrieve_items($max_items) {
|
|||
*/
|
||||
function retriever_clean_up_completed_resources($max_items) {
|
||||
// TODO: figure out how to do this with DBA module
|
||||
$r = DBA::p('SELECT retriever_resource.`id` as resource, retriever_item.`id` as item FROM retriever_resource, retriever_item, retriever_rule WHERE retriever_item.`finished` = 0 AND retriever_item.`resource` = retriever_resource.`id` AND retriever_resource.`completed` IS NOT NULL AND retriever_item.`contact-id` = retriever_rule.`contact-id` AND retriever_item.`item-uid` = retriever_rule.`uid` LIMIT %d',
|
||||
intval($max_items));
|
||||
$r = DBA::p("SELECT retriever_resource.`id` as resource, retriever_item.`id` as item FROM retriever_resource, retriever_item, retriever_rule WHERE retriever_item.`finished` = 0 AND retriever_item.`resource` = retriever_resource.`id` AND retriever_resource.`completed` IS NOT NULL AND retriever_item.`contact-id` = retriever_rule.`contact-id` AND retriever_item.`item-uid` = retriever_rule.`uid` LIMIT $max_items");
|
||||
if (!DBA::isResult($r)) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue