Skip to content

Commit

Permalink
fix push out data input method
Browse files Browse the repository at this point in the history
when pushing out an unused data input method, don't generate an error.
  • Loading branch information
cigamit committed Nov 7, 2015
1 parent 14690f6 commit cf7d472
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ function poller_update_poller_cache_from_buffer($local_data_ids, &$poller_items)
$count++;
}

db_execute("UPDATE poller_item SET present=0 WHERE local_data_id IN ($ids)");
if ($ids != '') {
db_execute("UPDATE poller_item SET present=0 WHERE local_data_id IN ($ids)");
}
} else {
/* don't mark anything in case we have no $local_data_ids =>
*this would flush the whole table at bottom of this function */
Expand Down

0 comments on commit cf7d472

Please sign in to comment.