Added the soulmate for a lonely opening brace.

This commit is contained in:
jacob 2011-02-18 17:12:32 +00:00
parent 6519392bd5
commit c1d248dbd3

18
api.php
View File

@ -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;