summaryrefslogtreecommitdiffstats
path: root/application/service
diff options
context:
space:
mode:
Diffstat (limited to 'application/service')
-rw-r--r--application/service/user.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/application/service/user.php b/application/service/user.php
index 16fa62272..cab14dbab 100644
--- a/application/service/user.php
+++ b/application/service/user.php
@@ -53,6 +53,7 @@ class user {
static public function apikeys($userid)
{
$CI =& get_instance();
+ $ret = array();
$query = $CI->db->select('key, created, comment, access_level')
->from('apikeys')
@@ -66,9 +67,12 @@ class user {
if (!empty($record['created'])) {
$record['created'] = strtotime($record['created']);
}
+ $ret[$record["key"]] = $record;
}
unset($record);
- return $query;
+ return array(
+ "apikeys" => $ret,
+ );
}
}