diff options
author | friendica <info@friendica.com> | 2014-01-29 16:02:02 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-29 16:02:02 -0800 |
commit | 677f5f641e6c37244ee67459b6fa2c7e5aea119b (patch) | |
tree | 6e6ff468526ac2ebc2eb97cacd3c5cabe4f652b3 /include/chat.php | |
parent | 1915add7c1c812a368540ece48209729329ced94 (diff) | |
download | volse-hubzilla-677f5f641e6c37244ee67459b6fa2c7e5aea119b.tar.gz volse-hubzilla-677f5f641e6c37244ee67459b6fa2c7e5aea119b.tar.bz2 volse-hubzilla-677f5f641e6c37244ee67459b6fa2c7e5aea119b.zip |
more testing of chatroom interfaces, also corrected a function call that should have been a class instantiation in reddav
Diffstat (limited to 'include/chat.php')
-rw-r--r-- | include/chat.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/chat.php b/include/chat.php index 6bcb003ff..f682fe6fe 100644 --- a/include/chat.php +++ b/include/chat.php @@ -88,8 +88,8 @@ function chatroom_enter($observer_xchan,$room_id,$status,$client) { require_once('include/security.php'); $sql_extra = permissions_sql($r[0]['cr_uid']); - $x = q("select * from chatroom where cr_id = %d and uid = %d $sql_extra limit 1", - intval($room_id) + $x = q("select * from chatroom where cr_id = %d and cr_uid = %d $sql_extra limit 1", + intval($room_id), intval($r[0]['cr_uid']) ); if(! $x) { |