mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 02:21:55 -04:00
Remove error suppression that is no longer necessary
This commit is contained in:
parent
c4c8e7353f
commit
eb376c87bd
1 changed files with 1 additions and 2 deletions
|
@ -250,8 +250,7 @@ class Artwork{
|
||||||
protected function GetDimensions(): string{
|
protected function GetDimensions(): string{
|
||||||
$this->_Dimensions = '';
|
$this->_Dimensions = '';
|
||||||
try{
|
try{
|
||||||
// Safe\getimagesize() emits a warning if the file doesn't exist
|
list($imageWidth, $imageHeight) = getimagesize($this->ImageFsPath);
|
||||||
list($imageWidth, $imageHeight) = @getimagesize($this->ImageFsPath);
|
|
||||||
if($imageWidth && $imageHeight){
|
if($imageWidth && $imageHeight){
|
||||||
$this->_Dimensions = number_format($imageWidth) . ' × ' . number_format($imageHeight);
|
$this->_Dimensions = number_format($imageWidth) . ' × ' . number_format($imageHeight);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue