summaryrefslogtreecommitdiff
path: root/include/colors.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-06-14 10:48:25 +0400
committerAndrew Dolgov <[email protected]>2013-06-14 10:48:25 +0400
commit8d1cfe8020404e2c4c9a2022fa75707582b26997 (patch)
treea5ca922cecf031a6d18f2a0b5bbe623b21017dab /include/colors.php
parentb684a2e6654ef749832f60f4c4243a42e4f583a8 (diff)
colorPalette: try checking imagesize before invoking GD
Diffstat (limited to 'include/colors.php')
-rw-r--r--include/colors.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/colors.php b/include/colors.php
index 91eaa2dc2..070be06a2 100644
--- a/include/colors.php
+++ b/include/colors.php
@@ -298,7 +298,7 @@ function hsl2rgb($arr) {
else
$img = @$ico->images[count($ico->images)-1]->getImageResource();
- } else {
+ } else if ($size[0] > 0 && $size[1] > 0) {
$img = @imagecreatefromstring(file_get_contents($imageFile));
}