]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
allow 0 in numeric entries in othersettings
authorEvan Prodromou <evan@status.net>
Mon, 26 Apr 2010 06:37:11 +0000 (02:37 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 26 Apr 2010 06:37:11 +0000 (02:37 -0400)
actions/othersettings.php

index ba3bdd88720e6e416b10332fbd622b8b03064d70..8d6e0040470ff451d7f8426eeb9d6aef4ffa0b48 100644 (file)
@@ -123,14 +123,14 @@ class OthersettingsAction extends AccountSettingsAction
         $this->elementStart('li');
         $this->input('maxurllength',
                      _('URL longer than'),
-                     ($this->arg('maxurllength')) ?
+                     (!is_null($this->arg('maxurllength'))) ?
                      $this->arg('maxurllength') : User_urlshortener_prefs::maxUrlLength($user),
                      _('URLs longer than this will be shortened.'));
         $this->elementEnd('li');
         $this->elementStart('li');
         $this->input('maxnoticelength',
                      _('Text longer than'),
-                     ($this->arg('maxnoticelength')) ?
+                     (!is_null($this->arg('maxnoticelength'))) ?
                      $this->arg('maxnoticelength') : User_urlshortener_prefs::maxNoticeLength($user),
                      _('URLs in notices longer than this will be shortened.'));
         $this->elementEnd('li');