summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-03-30 16:19:26 +0200
committerAndrey Andreev <narf@devilix.net>2015-03-30 16:19:26 +0200
commitfd3105716f5cdede79b9b471561413c161db250c (patch)
treecbe17428c8368f4f78b5cd5d30bc019c447a1c03 /system/libraries
parent5bd58a94f541e67853e2ee78b39c0cdbc7b7c669 (diff)
Fix #3717
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Session/Session.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Session/Session.php b/system/libraries/Session/Session.php
index bb457c659..0549fef66 100644
--- a/system/libraries/Session/Session.php
+++ b/system/libraries/Session/Session.php
@@ -869,7 +869,7 @@ class CI_Session {
public function set_tempdata($data, $value = NULL, $ttl = 300)
{
$this->set_userdata($data, $value);
- $this->mark_as_temp($data, $ttl);
+ $this->mark_as_temp(is_array($data) ? array_keys($data) : $data, $ttl);
}
// ------------------------------------------------------------------------