diff options
author | friendica <info@friendica.com> | 2013-10-14 22:20:14 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-10-14 22:20:14 -0700 |
commit | 89378fb12ab0be501a6fae23fd23a9a097742125 (patch) | |
tree | 90ee65aed738ad2009a2b25f22fb9de589af2166 | |
parent | b75163fb80518efb9e06b374f5093da5d2e6f6d4 (diff) | |
download | volse-hubzilla-89378fb12ab0be501a6fae23fd23a9a097742125.tar.gz volse-hubzilla-89378fb12ab0be501a6fae23fd23a9a097742125.tar.bz2 volse-hubzilla-89378fb12ab0be501a6fae23fd23a9a097742125.zip |
update even if no change
-rw-r--r-- | include/zot.php | 8 |
1 files changed, 8 insertions, 0 deletions
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; |