diff options
author | friendica <info@friendica.com> | 2014-01-28 16:16:55 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-28 16:16:55 -0800 |
commit | 8efac0cfd6db063a469ada1db4e5767a5fd975c6 (patch) | |
tree | fe6ebb5ceeeee091e4ab25bf296faea4123be426 /mod/ping.php | |
parent | 6e22aa25cc941f542a192ef32a2e8ee4f23bb1c1 (diff) | |
download | volse-hubzilla-8efac0cfd6db063a469ada1db4e5767a5fd975c6.tar.gz volse-hubzilla-8efac0cfd6db063a469ada1db4e5767a5fd975c6.tar.bz2 volse-hubzilla-8efac0cfd6db063a469ada1db4e5767a5fd975c6.zip |
fix sql query and provide setting to hide online status
Diffstat (limited to 'mod/ping.php')
-rw-r--r-- | mod/ping.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/ping.php b/mod/ping.php index b9ecf9b41..f067091da 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -50,6 +50,7 @@ function ping_init(&$a) { if($r) { foreach($r as $rr) { q("update chatpresence set cp_last = '%s' where cp_id = %d limit 1", + dbesc(datetime_convert()), intval($rr['cp_id']) ); } @@ -67,7 +68,6 @@ function ping_init(&$a) { q("delete from chatpresence where cp_last < UTC_TIMESTAMP() - INTERVAL 2 MINUTE"); - if((! local_user()) || ($result['invalid'])) { echo json_encode($result); killme(); |