Commit 2cfc5f5d70d788640d5a798cc8f9d2c0b767d553

Authored by Neil Blakey-Milner
1 parent b0a4d666

Check the 'error' value in the file array to see if there needs to be

any error handling.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4544 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/validation/dispatchervalidation.inc.php
@@ -188,6 +188,8 @@ class KTDispatcherValidation { @@ -188,6 +188,8 @@ class KTDispatcherValidation {
188 $bError = false; 188 $bError = false;
189 if (strlen($aFile['name']) == 0) { 189 if (strlen($aFile['name']) == 0) {
190 $bError = true; 190 $bError = true;
  191 + } else {
  192 + $bError = KTUtil::arrayGet($aFile, 'error');
191 } 193 }
192 if ($bError) { 194 if ($bError) {
193 $message = _("You did not select a valid document to upload"); 195 $message = _("You did not select a valid document to upload");