summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
Diffstat (limited to 'application/models')
-rw-r--r--application/models/muser.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/application/models/muser.php b/application/models/muser.php
index bb67bd6a0..6a488476f 100644
--- a/application/models/muser.php
+++ b/application/models/muser.php
@@ -101,10 +101,12 @@ class Muser extends CI_Model {
", array($apikey))->row_array();
if (isset($query["userid"])) {
- $this->session->set_userdata('logged_in', true);
- $this->session->set_userdata('username', "");
- $this->session->set_userdata('userid', $query["userid"]);
- $this->session->set_userdata('access_level', 'apikey');
+ $this->session->set_userdata(array(
+ 'logged_in' => true,
+ 'username' => '',
+ 'userid' => $query["userid"],
+ 'access_level' => 'apikey',
+ ));
return true;
}