mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
return from uploadDocument() if user cannot be found
This commit is contained in:
parent
1a9f6895f7
commit
cbe184a637
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user