1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-12 18:46:20 +02:00

Forum plugin - fixed error message incorrectly displaying when creating topic/reply with no attachments

This commit is contained in:
Moc
2014-08-20 00:32:57 +02:00
parent 9acc933dea
commit bf2fa42da7

View File

@ -661,10 +661,13 @@ function process_upload()
return $ret; return $ret;
} }
} }
/* no file uploaded at all, proceed with creating the topic or reply
// TODO don't call process_upload() when no attachments are uploaded.. (check user input first, then call if needed)
else else
{ {
e107::getMessage()->addError('Something went wrong during the attachment uploading process.'); e107::getMessage()->addError('Something went wrong during the attachment uploading process.');
} }
*/
} }
function image_getsize($fname) function image_getsize($fname)