From 8efac0cfd6db063a469ada1db4e5767a5fd975c6 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 28 Jan 2014 16:16:55 -0800 Subject: fix sql query and provide setting to hide online status --- mod/ping.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/ping.php') 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(); -- cgit v1.2.3