diff --git a/api.php b/api.php index b1860db..c14fa93 100644 --- a/api.php +++ b/api.php @@ -49,6 +49,7 @@ switch($request[0]) { user_conference_load($_SESSION['accounts_id'],$_SESSION['conferences_id']); } $ret['status']="ok"; + $ret['conferences_id']=$_SESSION['conferences_id']; } else { $ret['status']="error"; $ret['error']='conferences_id (integer) is required'; @@ -59,7 +60,7 @@ switch($request[0]) { $ret['conferences']=array(); $response=array(); - $q=mysql_query("SELECT id,name,type FROM conferences WHERE status='running' ORDER BY id"); + $q=mysql_query("SELECT id,name,type,status FROM conferences ORDER BY id"); while($r=mysql_fetch_assoc($q)) { $response[]=$r; }