Improved Search Functionality
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user