forked from science-ation/science-ation
List all conferences with status in the api call, instead of just the running ones
This commit is contained in:
parent
dfb6112e66
commit
3913bb397d
3
api.php
3
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user