安装程序优化

feat/task1-c-wallet
gongfuxiang 2019-01-20 00:02:14 +08:00
parent a6ae6ec8c5
commit ecac419150
1 changed files with 2 additions and 2 deletions

View File

@ -35,9 +35,9 @@
</tr>
<?php
$tmp = function_exists('gd_info') ? gd_info() : array();
if(!empty($tmp))
if(function_exists('gd_info'))
{
$tmp = gd_info();
preg_match("/[\d.]+/", $tmp['GD Version'], $match);
unset($tmp);
}