diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-12 08:25:27 +1000 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-12 08:25:27 +1000 |
commit | 692e117c8a2a6e3830c6ff71486b4c1edc5226c9 (patch) | |
tree | ff442b653357fa96148878a8f3848a7286699c0b /include | |
parent | d96ca61f2bb6b14fb1d8b4a6705d9cb64474b896 (diff) | |
parent | 755edd21100a131bcda586aadbe7b4b83ebe6375 (diff) | |
download | volse-hubzilla-692e117c8a2a6e3830c6ff71486b4c1edc5226c9.tar.gz volse-hubzilla-692e117c8a2a6e3830c6ff71486b4c1edc5226c9.tar.bz2 volse-hubzilla-692e117c8a2a6e3830c6ff71486b4c1edc5226c9.zip |
Merge pull request #38 from MicMee/master
ensure that living sites are marked as alive
Diffstat (limited to 'include')
-rw-r--r-- | include/zot.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/zot.php b/include/zot.php index ff5d731df..7e45b29c5 100644 --- a/include/zot.php +++ b/include/zot.php @@ -953,7 +953,7 @@ function zot_process_response($hub, $arr, $outq) { // update the timestamp for this site - q("update site set site_update = '%s' where site_url = '%s'", + q("update site set site_dead = 0, site_update = '%s' where site_url = '%s'", dbesc(datetime_convert()), dbesc(dirname($hub)) ); @@ -2682,7 +2682,7 @@ function import_site($arr, $pubkey) { // logger('import_site: input: ' . print_r($arr,true)); // logger('import_site: stored: ' . print_r($siterecord,true)); - $r = q("update site set site_location = '%s', site_flags = %d, site_access = %d, site_directory = '%s', site_register = %d, site_update = '%s', site_sellpage = '%s', site_realm = '%s' + $r = q("update site set site_dead = 0, site_location = '%s', site_flags = %d, site_access = %d, site_directory = '%s', site_register = %d, site_update = '%s', site_sellpage = '%s', site_realm = '%s' where site_url = '%s'", dbesc($site_location), intval($site_directory), @@ -2700,7 +2700,7 @@ function import_site($arr, $pubkey) { } else { // update the timestamp to indicate we communicated with this site - q("update site set site_update = '%s' where site_url = '%s'", + q("update site set site_dead = 0, site_update = '%s' where site_url = '%s'", dbesc(datetime_convert()), dbesc($url) ); |