aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/onepoll.php7
1 files 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