mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +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) {
|
if(!$userobj) {
|
||||||
$app->response()->header('Content-Type', 'application/json');
|
$app->response()->header('Content-Type', 'application/json');
|
||||||
echo json_encode(array('success'=>false, 'message'=>'Not logged in', 'data'=>''));
|
echo json_encode(array('success'=>false, 'message'=>'Not logged in', 'data'=>''));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($id == 0) {
|
if($id == 0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user