summaryrefslogtreecommitdiff
path: root/BitSystem.php
diff options
context:
space:
mode:
Diffstat (limited to 'BitSystem.php')
-rw-r--r--BitSystem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/BitSystem.php b/BitSystem.php
index d1daaaa..81ddd75 100644
--- a/BitSystem.php
+++ b/BitSystem.php
@@ -1588,7 +1588,7 @@ require_once( USERS_PKG_PATH.'includes/BitHybridAuthManager.php' );
*/
function verifyMimeType( $pFile ) {
$mime = NULL;
- if( file_exists( $pFile ) ) {
+ if( file_exists( $pFile ) && filesize( $pFile ) ) {
if( function_exists( 'finfo_open' ) ) {
if( is_windows() && defined( 'PHP_MAGIC_PATH' ) && is_readable( PHP_MAGIC_PATH )) {
$finfo = finfo_open( FILEINFO_MIME, PHP_MAGIC_PATH );