diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-02-23 23:33:51 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2014-02-23 23:33:51 +0100 |
commit | 475c5d97fa48e3fdfbccc47d0b64b2cd71ab8a8e (patch) | |
tree | 75284017bd361c420b0b8c3d6225a14971998d00 | |
parent | 5919c771e9cf3c3edfc62dfb1ac6bddf1cfc9732 (diff) |
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 <bluewind@xinu.at>
-rw-r--r-- | application/controllers/user.php | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |