mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
fix wrong variable name (part of ticket #373)
This commit is contained in:
parent
d2ccd5d5ad
commit
6c5608d96d
|
@ -699,7 +699,7 @@ function uploadDocumentFile($documentId) { /* {{{ */
|
|||
return;
|
||||
}
|
||||
|
||||
if(!ctype_digit($document) || $documentId == 0) {
|
||||
if(!ctype_digit($documentId) || $documentId == 0) {
|
||||
$app->response()->header('Content-Type', 'application/json');
|
||||
echo json_encode(array('success'=>true, 'message'=>'id is 0', 'data'=>''));
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user