// Upgrade improvements including #PSCFV-3451

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16844 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-08-14 12:21:18 +00:00
parent f455965bea
commit e6d67bdbb6
3 changed files with 70 additions and 2 deletions

View File

@@ -167,8 +167,8 @@ abstract class ModuleCore
// We load configuration from the cache
if (isset(self::$modules_cache[$this->name]))
{
$this->active = self::$modules_cache[$this->name]['active'];
$this->id = self::$modules_cache[$this->name]['id_module'];
if (isset(self::$modules_cache[$this->name]['id_module']))
$this->id = self::$modules_cache[$this->name]['id_module'];
foreach (self::$modules_cache[$this->name] as $key => $value)
if (key_exists($key, $this))
$this->{$key} = $value;