summaryrefslogtreecommitdiffstats
path: root/system/scaffolding/Scaffolding.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-26 09:52:22 +0200
committeradmin <devnull@localhost>2006-09-26 09:52:22 +0200
commit954246e23f7bc01d0c8d7b72e81e9ea4b376fd0c (patch)
tree3be4200f992fb22f29e9ceb339b3b7b87a78a278 /system/scaffolding/Scaffolding.php
parent7981a9a752c339611ae10a252469f9dbc266fb96 (diff)
Diffstat (limited to 'system/scaffolding/Scaffolding.php')
-rw-r--r--system/scaffolding/Scaffolding.php7
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;
+ }
}
/**