fix wrong variable name (part of ticket #373)

This commit is contained in:
Uwe Steinmann 2018-01-08 10:51:08 +01:00
parent d2ccd5d5ad
commit 6c5608d96d

View File

@ -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;