diff options
author | Andrey Andreev <narf@bofh.bg> | 2013-01-30 12:57:56 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2013-01-30 12:57:56 +0100 |
commit | 8151cbb586edf565a57e33287b01222d9c4a85b6 (patch) | |
tree | c69b65072a12f61b1ac586eed1e9449b0fe3f413 /system/libraries | |
parent | 18c9231236f22db9136184636730385b607863e8 (diff) |
Fix/improve #2211
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Migration.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php index fd915c382..b673e9cb7 100644 --- a/system/libraries/Migration.php +++ b/system/libraries/Migration.php @@ -104,8 +104,8 @@ class CI_Migration { */ public function __construct($config = array()) { - # Only run this constructor on main library load - if (get_parent_class($this) !== FALSE) + // Only run this constructor on main library load + if ( ! in_array(get_class($this), array('CI_Migration', config_item('subclass_prefix').'Migration'), TRUE)) { return; } |