update timestamps on successful poll
This commit is contained in:
parent
2d113f0c87
commit
ba0876d011
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user