more testing of chatroom interfaces, also corrected a function call that should have been a class instantiation in reddav

This commit is contained in:
friendica
2014-01-29 16:02:02 -08:00
parent 1915add7c1
commit 677f5f641e
4 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -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) {