提交 ecac4191 编写于 作者: G gongfuxiang

安装程序优化

上级 a6ae6ec8
...@@ -35,9 +35,9 @@ ...@@ -35,9 +35,9 @@
</tr> </tr>
<?php <?php
$tmp = function_exists('gd_info') ? gd_info() : array(); if(function_exists('gd_info'))
if(!empty($tmp))
{ {
$tmp = gd_info();
preg_match("/[\d.]+/", $tmp['GD Version'], $match); preg_match("/[\d.]+/", $tmp['GD Version'], $match);
unset($tmp); unset($tmp);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册