summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-02-23 23:33:51 +0100
committerFlorian Pritz <bluewind@xinu.at>2014-02-23 23:33:51 +0100
commit475c5d97fa48e3fdfbccc47d0b64b2cd71ab8a8e (patch)
tree75284017bd361c420b0b8c3d6225a14971998d00 /application
parent5919c771e9cf3c3edfc62dfb1ac6bddf1cfc9732 (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>
Diffstat (limited to 'application')
-rw-r--r--application/controllers/user.php1
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) {