summaryrefslogtreecommitdiffstats
path: root/application/controllers/api
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/api')
-rw-r--r--application/controllers/api/v2/user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/api/v2/user.php b/application/controllers/api/v2/user.php
index 3c2eafad0..677a870c4 100644
--- a/application/controllers/api/v2/user.php
+++ b/application/controllers/api/v2/user.php
@@ -36,7 +36,7 @@ class user extends \controllers\api\api_controller {
$userid = $this->CI->muser->get_userid();
$comment = $this->CI->input->post("comment");
- $comment = $comment === false ? "" : $comment;
+ $comment = $comment === null ? "" : $comment;
$access_level = $this->CI->input->post("access_level");
$key = \service\user::create_apikey($userid, $comment, $access_level);