Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit 5299a92

Browse files
committed
Merge pull request #3 from enumag/patch-3
Fixed resizing algorithms
2 parents 8039e8a + 1d417f4 commit 5299a92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IPub/Images/Application/Presenter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ private function generateImage($namespace, $filename, $extension, $size, $algori
186186
break;
187187

188188
default:
189-
$algorithm = NULL;
189+
$algorithm = ctype_digit($algorithm) ? (int) $algorithm : NULL;
190190
}
191191

192192
} else {
@@ -252,4 +252,4 @@ private function generateImage($namespace, $filename, $extension, $size, $algori
252252

253253
exit;
254254
}
255-
}
255+
}

0 commit comments

Comments
 (0)