Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed May 18, 2019
1 parent 4517d84 commit 41cb13b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/lib/admin.lib.php
Expand Up @@ -1057,8 +1057,8 @@ function unActivateModule($value, $requiredby = 1)
$genericMod->remove('');
}

// Desactivation des modules qui dependent de lui
if (! $ret && $requiredby)
// Disable modules that depends on module we disable
if (! $ret && $requiredby && is_object($objMod) && is_array($objMod->requiredby))
{
$countrb=count($objMod->requiredby);
for ($i = 0; $i < $countrb; $i++)
Expand Down

0 comments on commit 41cb13b

Please sign in to comment.