Fix: Do not activate dependency modules if error on main module
This commit is contained in:
parent
3b8fb6d3d1
commit
fac5a39087
@ -622,7 +622,7 @@ function Activate($value,$withdeps=1)
|
|||||||
if ($result <= 0) $ret=$objMod->error;
|
if ($result <= 0) $ret=$objMod->error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($withdeps)
|
if (! $ret && $withdeps)
|
||||||
{
|
{
|
||||||
if (is_array($objMod->depends) && !empty($objMod->depends))
|
if (is_array($objMod->depends) && !empty($objMod->depends))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user