summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session.php
diff options
context:
space:
mode:
authorGreg Aker <greg.aker@ellislab.com>2011-04-18 18:18:09 +0200
committerGreg Aker <greg.aker@ellislab.com>2011-04-18 18:18:09 +0200
commit3403366d0f457c1dd449076b4177d1aff5cb176c (patch)
tree74b002b1cf7c8f12da195e8893f036b3b916aec7 /system/libraries/Session.php
parent62df13125bd9ab22ff0c7f2565a42a6de13ed7e4 (diff)
changeset: 2202:06a75a1bd622
tag: tip user: Greg Aker <greg.aker@ellislab.com> date: Mon Apr 18 11:10:37 2011 -0500 summary: Tweak to session class all_userdata() to just return the userdata array. Also documented previously undocumented all_userdata() method.
Diffstat (limited to 'system/libraries/Session.php')
-rw-r--r--system/libraries/Session.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Session.php b/system/libraries/Session.php
index 182294059..32317c2e6 100644
--- a/system/libraries/Session.php
+++ b/system/libraries/Session.php
@@ -435,11 +435,11 @@ class CI_Session {
* Fetch all session data
*
* @access public
- * @return mixed
+ * @return array
*/
function all_userdata()
{
- return ( ! isset($this->userdata)) ? FALSE : $this->userdata;
+ return $this->userdata;
}
// --------------------------------------------------------------------