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':
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;