diff options
author | nikrou <nikrou@piwigo.org> | 2006-06-22 19:39:54 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2006-06-22 19:39:54 +0000 |
commit | 2f077a3c97c6f0c2d8e5fe0a8af070a3f4cef11e (patch) | |
tree | 01d77ede1bb9e29f0efd10f6856ff51060041a79 /admin/thumbnail.php | |
parent | c90c29e92766219ee723e17e980c31d58b916bbf (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/thumbnail.php')
-rw-r--r-- | admin/thumbnail.php | 5 |
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); |