forked from friendica/friendica-addons
fix sql syntax
This commit is contained in:
parent
04cb0a0aa6
commit
101d81718e
1 changed files with 1 additions and 2 deletions
|
@ -172,8 +172,7 @@ function retriever_retrieve_items($max_items) {
|
||||||
*/
|
*/
|
||||||
function retriever_clean_up_completed_resources($max_items) {
|
function retriever_clean_up_completed_resources($max_items) {
|
||||||
// TODO: figure out how to do this with DBA module
|
// 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',
|
$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");
|
||||||
intval($max_items));
|
|
||||||
if (!DBA::isResult($r)) {
|
if (!DBA::isResult($r)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue