aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2006-06-22 19:39:54 +0000
committernikrou <nikrou@piwigo.org>2006-06-22 19:39:54 +0000
commit2f077a3c97c6f0c2d8e5fe0a8af070a3f4cef11e (patch)
tree01d77ede1bb9e29f0efd10f6856ff51060041a79 /admin
parentc90c29e92766219ee723e17e980c31d58b916bbf (diff)
fix bug 428: blank page when gd extension missing
git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1378 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-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);