diff --git a/include/onepoll.php b/include/onepoll.php index a9fc0b2f3..1d7ac226d 100644 --- a/include/onepoll.php +++ b/include/onepoll.php @@ -51,10 +51,9 @@ function onepoll_run($argv, $argc){ return; $contact = $contacts[0]; + $t = $contact['abook_updated']; - - $importer_uid = $contact['abook_channel']; $r = q("SELECT * from channel left join xchan on channel_hash = xchan_hash where channel_id = %d limit 1", @@ -82,6 +81,10 @@ function onepoll_run($argv, $argc){ } else { + q("update abook set abook_updated = '%s' where abook_id = %d limit 1", + dbesc(datetime_convert()), + intval($contact['abook_id']) + ); // if marked for death, reset