* fix glob error.

This commit is contained in:
wangyidong
2015-02-10 16:09:32 +08:00
parent 33f5ca6e73
commit 13e6b3d91b
5 changed files with 33 additions and 15 deletions
+1 -1
View File
@@ -58,7 +58,7 @@
<?php
$headerHooks = glob(dirname(dirname(__FILE__)) . "/ext/view/featurebar.*.html.hook.php");
if(is_array($headerHooks))
if(!empty($headerHooks))
{
foreach($headerHooks as $fileName) helper::import($fileName);
}