mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 15:16:30 +02:00
Extra check during plugin meta scan.
This commit is contained in:
@@ -478,7 +478,7 @@ class e_plugin
|
|||||||
{
|
{
|
||||||
$ret = null;
|
$ret = null;
|
||||||
|
|
||||||
if($plugName === '.' || $plugName === '..' || !is_dir(e_PLUGIN.$plugName))
|
if(empty($plugName) || $plugName === '.' || $plugName === '..' || !is_dir(e_PLUGIN.$plugName))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -492,8 +492,10 @@ class e_plugin
|
|||||||
$ret = $this->parse_plugin_php($plugName);
|
$ret = $this->parse_plugin_php($plugName);
|
||||||
}
|
}
|
||||||
|
|
||||||
$arr[$plugName] = $ret;
|
if(!empty($ret))
|
||||||
|
{
|
||||||
|
$arr[$plugName] = $ret;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(empty($arr))
|
if(empty($arr))
|
||||||
|
Reference in New Issue
Block a user