aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/thumbnail.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/thumbnail.php b/admin/thumbnail.php
index d37d9c2fa..d46a05b9c 100644
--- a/admin/thumbnail.php
+++ b/admin/thumbnail.php
@@ -40,6 +40,11 @@ function RatioResizeImg($path, $newWidth, $newHeight, $tn_ext)
{
global $conf, $lang, $page;
+ if (!function_exists('gd_info'))
+ {
+ return;
+ }
+
$filename = basename($path);
$dirname = dirname($path);