aboutsummaryrefslogtreecommitdiffstats
path: root/admin/thumbnail.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2006-06-22 19:41:32 +0000
committernikrou <nikrou@piwigo.org>2006-06-22 19:41:32 +0000
commit17d13cef8dd4c6c365bdb2ac8db8bedafa2e35dc (patch)
treeaa4d58d6c7a6889c5ae03d802aa117536ffedb76 /admin/thumbnail.php
parenta08cd1a583cdda6a1175b9e1e4c9c184f3112c5d (diff)
fix bug 428: blank page when gd extension missing
svn merge -r1377:1378 from branch 1.6 into trunk git-svn-id: http://piwigo.org/svn/trunk@1379 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/thumbnail.php')
-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);