aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-29 02:36:01 -0800
committerfriendica <info@friendica.com>2014-01-29 02:36:01 -0800
commitc95f65e092e3ea3e4d312976789597ef91037b25 (patch)
tree6a36dd08857046ab56eb46cbe218ea5d035c8321
parent10b51a9471bba2a1b058eee2d362d3d2189627be (diff)
downloadvolse-hubzilla-c95f65e092e3ea3e4d312976789597ef91037b25.tar.gz
volse-hubzilla-c95f65e092e3ea3e4d312976789597ef91037b25.tar.bz2
volse-hubzilla-c95f65e092e3ea3e4d312976789597ef91037b25.zip
prevent runaway presence indication
-rw-r--r--mod/ping.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/ping.php b/mod/ping.php
index c3c81992f..2d5deb9ad 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -44,14 +44,14 @@ function ping_init(&$a) {
}
if(get_observer_hash() && (! $result['invalid'])) {
- $r = q("select cp_id from chatpresence where cp_xchan = '%s' and cp_client = '%s'",
+ $r = q("select cp_id, cp_room from chatpresence where cp_xchan = '%s' and cp_client = '%s'",
dbesc(get_observer_hash()),
dbesc($_SERVER['REMOTE_ADDR'])
);
$basic_presence = false;
if($r) {
foreach($r as $rr) {
- if($rr['cp_id'] == 0)
+ if($rr['cp_room'] == 0)
$basic_presence = true;
q("update chatpresence set cp_last = '%s' where cp_id = %d limit 1",
dbesc(datetime_convert()),