mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
PHP7 User-Extended Fix. Checkboxes now working correctly and saving as an array. Some BC fixes may be needed.
This commit is contained in:
@@ -55,3 +55,17 @@ if (!function_exists('json_encode'))
|
||||
return $json->decode($json_obj);
|
||||
}
|
||||
}
|
||||
|
||||
// Fix for exim missing.
|
||||
if(!function_exists('exif_imagetype'))
|
||||
{
|
||||
function exif_imagetype($filename)
|
||||
{
|
||||
if((list($width, $height, $type, $attr) = getimagesize( $filename ) ) !== false)
|
||||
{
|
||||
return $type;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user