diff options
author | Evan Prodromou <evan@status.net> | 2010-04-26 02:37:11 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-04-26 02:37:11 -0400 |
commit | a9c6a3bace0af44bcf38d1c790425a7be9c72147 (patch) | |
tree | b82b691a82709e7eb6109130e1e61ee6a86d585e | |
parent | 767ff2f7ecfd7e76e8418fc79d45e61898f09382 (diff) |
allow 0 in numeric entries in othersettings
-rw-r--r-- | actions/othersettings.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/othersettings.php b/actions/othersettings.php index ba3bdd887..8d6e00404 100644 --- a/actions/othersettings.php +++ b/actions/othersettings.php @@ -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'); |