From 475c5d97fa48e3fdfbccc47d0b64b2cd71ab8a8e Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 23 Feb 2014 23:33:51 +0100 Subject: user/create_apikey: Use empty comment if unset False gets converted to "0" when being stored in the DB which we don't want. Signed-off-by: Florian Pritz --- application/controllers/user.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/controllers/user.php b/application/controllers/user.php index f11baba74..7ebaa0b68 100644 --- a/application/controllers/user.php +++ b/application/controllers/user.php @@ -79,6 +79,7 @@ class User extends MY_Controller { $userid = $this->muser->get_userid(); $comment = $this->input->post("comment"); + $comment = $comment === false ? "" : $comment; $access_level = $this->input->post("access_level"); if ($access_level === false) { -- cgit v1.2.3-24-g4f1b