1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

Extra check during plugin meta scan.

This commit is contained in:
Cameron
2017-04-02 12:39:50 -07:00
parent f3f7826c95
commit 35859cf46b

View File

@@ -478,7 +478,7 @@ class e_plugin
{
$ret = null;
if($plugName === '.' || $plugName === '..' || !is_dir(e_PLUGIN.$plugName))
if(empty($plugName) || $plugName === '.' || $plugName === '..' || !is_dir(e_PLUGIN.$plugName))
{
continue;
}
@@ -492,8 +492,10 @@ class e_plugin
$ret = $this->parse_plugin_php($plugName);
}
$arr[$plugName] = $ret;
if(!empty($ret))
{
$arr[$plugName] = $ret;
}
}
if(empty($arr))