Revert/optimize some changes from 773ccc318f2769c9b7579630569b5d8ba47b114b and d261b1e89c3d4d5191036d5a5660ef6764e593a0
diff --git a/system/libraries/Session.php b/system/libraries/Session.php
index cc992a5..7beedd9 100644
--- a/system/libraries/Session.php
+++ b/system/libraries/Session.php
@@ -359,7 +359,7 @@
// 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);