From 954246e23f7bc01d0c8d7b72e81e9ea4b376fd0c Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 26 Sep 2006 07:52:22 +0000 Subject: --- system/scaffolding/Scaffolding.php | 7 +++++-- 1 file 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; + } } /** -- cgit v1.2.3-24-g4f1b