From ba0876d01198fa36fa48b7a14a42b0ab6d7007b6 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 30 Dec 2012 23:55:57 -0800 Subject: update timestamps on successful poll --- include/onepoll.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/onepoll.php b/include/onepoll.php index a9fc0b2f3..1d7ac226d 100644 --- a/include/onepoll.php +++ b/include/onepoll.php @@ -51,9 +51,8 @@ function onepoll_run($argv, $argc){ return; $contact = $contacts[0]; - $t = $contact['abook_updated']; - + $t = $contact['abook_updated']; $importer_uid = $contact['abook_channel']; @@ -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 -- cgit v1.2.3