diff options
Diffstat (limited to 'system/scaffolding/Scaffolding.php')
-rw-r--r-- | system/scaffolding/Scaffolding.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/system/scaffolding/Scaffolding.php b/system/scaffolding/Scaffolding.php index 4b6ebeed5..9059ec15a 100644 --- a/system/scaffolding/Scaffolding.php +++ b/system/scaffolding/Scaffolding.php @@ -34,9 +34,12 @@ class Scaffolding { function Scaffolding($db_table) { $obj =& get_instance(); - foreach ($obj->ci_is_loaded as $val) + foreach (get_object_vars($obj) as $key => $var) { - $this->$val =& $obj->$val; + if (is_object($var)) + { + $this->$key =& $obj->$key; + } } /** |