Improved Search Functionality

This commit is contained in:
Joey Kimsey
2025-01-30 18:07:45 -05:00
parent b1e74f9652
commit 795784f02e
3 changed files with 39 additions and 4 deletions

View File

@ -99,11 +99,11 @@ class Check {
* @return {bool}
*/
public static function imageUpload( $imageName ) {
if ( !Config::getValue( 'uploads/images' ) ) {
if ( ! Config::getValue( 'uploads/images' ) ) {
self::addUserError( 'Image uploads are disabled.' );
return false;
}
if ( !isset( $_FILES[$imageName] ) ) {
if ( ! isset( $_FILES[ $imageName ] ) ) {
self::addUserError( 'File not found.', $imageName );
return false;
}