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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user