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
This commit is contained in:
parent
c90c29e927
commit
2f077a3c97
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue