return from uploadDocument() if user cannot be found

This commit is contained in:
Uwe Steinmann 2017-12-20 13:19:41 +01:00
parent 1a9f6895f7
commit cbe184a637

View File

@ -431,6 +431,7 @@ function uploadDocument($id) { /* {{{ */
if(!$userobj) {
$app->response()->header('Content-Type', 'application/json');
echo json_encode(array('success'=>false, 'message'=>'Not logged in', 'data'=>''));
return;
}
if($id == 0) {