forked from Public/pics
Use triple-equals in a few more places
This commit is contained in:
@@ -263,7 +263,7 @@ class Asset
|
||||
}
|
||||
|
||||
$data['id_asset'] = $db->insert_id();
|
||||
return $return_format == 'object' ? new self($data) : $data;
|
||||
return $return_format === 'object' ? new self($data) : $data;
|
||||
}
|
||||
|
||||
public function getId()
|
||||
@@ -394,7 +394,7 @@ class Asset
|
||||
finfo_close($finfo);
|
||||
|
||||
// Detected an image?
|
||||
if (substr($this->mimetype, 0, 5) == 'image')
|
||||
if (substr($this->mimetype, 0, 5) === 'image')
|
||||
{
|
||||
$image = new Imagick($destination);
|
||||
$d = $image->getImageGeometry();
|
||||
|
||||
Reference in New Issue
Block a user