aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorChristian Vogeley <christian.vogeley@hotmail.de>2013-10-20 01:22:51 +0200
committerChristian Vogeley <christian.vogeley@hotmail.de>2013-10-20 01:22:51 +0200
commit2db45695e8067e49eb4c8a6d8044cd9cac7f07e5 (patch)
tree7a1029e10578e99f0dbbef6e22c42eb784ddd9d1 /include/zot.php
parentc0789bdb4fc7412efd5e2fb1e15b63d359a74cfa (diff)
parent49fb6326e0e978f57b2f988935af6e8e3d2f4417 (diff)
downloadvolse-hubzilla-2db45695e8067e49eb4c8a6d8044cd9cac7f07e5.tar.gz
volse-hubzilla-2db45695e8067e49eb4c8a6d8044cd9cac7f07e5.tar.bz2
volse-hubzilla-2db45695e8067e49eb4c8a6d8044cd9cac7f07e5.zip
Merge upstream
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php
index b250557e6..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;
@@ -1568,6 +1576,7 @@ function update_modtime($hash,$guid,$addr,$flags = 0) {
else {
q("update updates set ud_flags = ( ud_flags | %d ) where ud_addr = '%s' and not (ud_flags & %d) ",
intval(UPDATE_FLAGS_UPDATED),
+ dbesc($addr),
intval(UPDATE_FLAGS_UPDATED)
);
}