forked from science-ation/science-ation
Added the soulmate for a lonely opening brace.
This commit is contained in:
parent
6519392bd5
commit
c1d248dbd3
18
api.php
18
api.php
@ -927,14 +927,18 @@ switch($request[0]) {
|
||||
*/
|
||||
case 'view':
|
||||
if($u=user_load($_SESSION['users_id'])) {
|
||||
$p=getProject(getRegistrationsId($_SESSION['users_id']));
|
||||
if(is_array($p)) {
|
||||
$ret['status'] = 'ok';
|
||||
$ret['project'] = $p;
|
||||
}
|
||||
else {
|
||||
$p=getProject(getRegistrationsId($_SESSION['users_id']));
|
||||
if(is_array($p)) {
|
||||
$ret['status'] = 'ok';
|
||||
$ret['project'] = $p;
|
||||
}
|
||||
else {
|
||||
$ret['status'] = 'error';
|
||||
$ret['error'] = 'no project';
|
||||
}
|
||||
}else{
|
||||
$ret['status'] = 'error';
|
||||
$ret['error'] = 'no project';
|
||||
$ret['error'] = 'unabe to load current user';
|
||||
}
|
||||
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user