Fixed: Php notice that is shown if module overrides are removed using the removeOverride function

This commit is contained in:
vishalsingh.qlo325
2025-01-20 15:11:30 +05:30
parent 950b37ed1c
commit 039101c949

View File

@@ -3191,8 +3191,6 @@ abstract class ModuleCore
// Make a reflection of the override class and the module override class
$overrideClassFileArray = file($overrideClassFilePath);
$moduleClassFileArray = array_diff($moduleClassFileArray, array("\n")); // remove empty lines from array
eval(
preg_replace(
array(
@@ -3209,6 +3207,7 @@ abstract class ModuleCore
$reflectionClassOverride = new ReflectionClass($overrideClassName.'Original_remove'.$uniq);
$moduleClassFileArray = file($this->getLocalPath().'override/'.$parentClassFilePath);
$moduleClassFileArray = array_diff($moduleClassFileArray, array("\n")); // remove empty lines from array
eval(
preg_replace(
array(