summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-04 14:34:56 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-04 14:34:56 +0200
commit5036c9caabb12f90b9533d7fb417610e02a652ff (patch)
treeff5fd9f6a0932e4d537482fd3ec5a3652188a950 /system/libraries/Session.php
parente4c30195c5f6dc7a144cfe4ee160b18626626612 (diff)
Diffstat (limited to 'system/libraries/Session.php')
-rw-r--r--system/libraries/Session.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Session.php b/system/libraries/Session.php
index cc992a5b8..7beedd96b 100644
--- a/system/libraries/Session.php
+++ b/system/libraries/Session.php
@@ -359,7 +359,7 @@ class CI_Session {
// Is there custom data? If so, add it to the main session array
$row = $query->row();
- if (isset($row->user_data) && $row->user_data !== '')
+ if ( ! empty($row->user_data))
{
$custom_data = $this->_unserialize($row->user_data);