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':
|
case 'view':
|
||||||
if($u=user_load($_SESSION['users_id'])) {
|
if($u=user_load($_SESSION['users_id'])) {
|
||||||
$p=getProject(getRegistrationsId($_SESSION['users_id']));
|
$p=getProject(getRegistrationsId($_SESSION['users_id']));
|
||||||
if(is_array($p)) {
|
if(is_array($p)) {
|
||||||
$ret['status'] = 'ok';
|
$ret['status'] = 'ok';
|
||||||
$ret['project'] = $p;
|
$ret['project'] = $p;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
$ret['status'] = 'error';
|
||||||
|
$ret['error'] = 'no project';
|
||||||
|
}
|
||||||
|
}else{
|
||||||
$ret['status'] = 'error';
|
$ret['status'] = 'error';
|
||||||
$ret['error'] = 'no project';
|
$ret['error'] = 'unabe to load current user';
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user