mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 08:43:31 +02:00
fixes #2020 check get_incompatible_plugins() has not returned false before foreach
This commit is contained in:
@@ -47,8 +47,17 @@ $plugins = new plugins();
|
||||
//--------------------------------------------------------Incompatible Plugins
|
||||
if (isset($_GET['incompatible_plugins']))
|
||||
{
|
||||
$incompatible_plugins_raw = $plugins->get_incompatible_plugins();
|
||||
|
||||
if (false === $incompatible_plugins_raw)
|
||||
{
|
||||
echo json_encode(array());
|
||||
exit;
|
||||
}
|
||||
|
||||
$incompatible_plugins = array();
|
||||
foreach ($plugins->get_incompatible_plugins() as $plugin => $version)
|
||||
|
||||
foreach ($incompatible_plugins_raw as $plugin => $version)
|
||||
{
|
||||
if ($plugin == '~~expire~~') continue;
|
||||
$incompatible_plugins[] = $plugin;
|
||||
|
||||
Reference in New Issue
Block a user