summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-10-19 03:33:04 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-10-19 03:33:04 +0200
commita5c711d6a3c8d4d9ba519ed40f9813e7d130c8ac (patch)
treec3528ba778201777d0b60c0db96be45a3c26fa1c /system
parent9ba2189dd10fd9a8cd779d8e3058af5f2ecf2696 (diff)
Fixed a bug in which NULL values were not being preserved
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Model.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/libraries/Model.php b/system/libraries/Model.php
index 3b5123fe4..1d3cbdfa0 100644
--- a/system/libraries/Model.php
+++ b/system/libraries/Model.php
@@ -65,8 +65,7 @@ class Model {
// problems so we'll conditionally use them
if ($use_reference == TRUE)
{
- // Needed to prevent reference errors with some configurations
- $this->$key = '';
+ $this->$key = NULL; // Needed to prevent reference errors with some configurations
$this->$key =& $CI->$key;
}
else