mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-17 07:01:20 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!ctype_digit($document) || $documentId == 0) {
|
if(!ctype_digit($documentId) || $documentId == 0) {
|
||||||
$app->response()->header('Content-Type', 'application/json');
|
$app->response()->header('Content-Type', 'application/json');
|
||||||
echo json_encode(array('success'=>true, 'message'=>'id is 0', 'data'=>''));
|
echo json_encode(array('success'=>true, 'message'=>'id is 0', 'data'=>''));
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user