From 89378fb12ab0be501a6fae23fd23a9a097742125 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 14 Oct 2013 22:20:14 -0700 Subject: update even if no change --- include/zot.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/zot.php b/include/zot.php index f1e298f91..0ee099ce5 100644 --- a/include/zot.php +++ b/include/zot.php @@ -723,6 +723,14 @@ function import_xchan($arr,$ud_flags = 1) { update_modtime($xchan_hash,$guid,$arr['address'],$ud_flags); logger('import_xchan: changed: ' . $what,LOGGER_DEBUG); } + elseif(! $ud_flags) { + // nothing changed but we still need to update the updates record + q("update updates set ud_flags = ( ud_flags | %d ) where ud_addr = '%s' and not (ud_flags & %d) ", + intval(UPDATE_FLAGS_UPDATED), + dbesc($arr['address']), + intval(UPDATE_FLAGS_UPDATED) + ); + } if(! x($ret,'message')) { $ret['success'] = true; -- cgit v1.2.3