summaryrefslogtreecommitdiffstats
path: root/application/libraries
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-02-03 17:27:40 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-02-03 23:31:58 +0100
commit46fe1f6db8395381c71e2e7fba3d1c2d979cbfbc (patch)
treef47a86b449f0169004a572fcb3f3811747cffd16 /application/libraries
parenta842392c30e9ef1d1d2bd9b4eb271c3fd23b853f (diff)
lib/Image->get: check if ob_get_clean worked
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/libraries')
-rw-r--r--application/libraries/Image.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/libraries/Image.php b/application/libraries/Image.php
index ae7be844e..0f920358a 100644
--- a/application/libraries/Image.php
+++ b/application/libraries/Image.php
@@ -93,7 +93,7 @@ class Image {
}
$result = ob_get_clean();
- if (!$ret) {
+ if (!$ret || $result === false) {
throw new \exceptions\ApiException("libraries/Image/thumbnail-creation-failed", "Failed to create thumbnail");
}