From: Evan Prodromou Date: Mon, 26 Apr 2010 06:37:11 +0000 (-0400) Subject: allow 0 in numeric entries in othersettings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a9c6a3bace0af44bcf38d1c790425a7be9c72147;p=quix0rs-gnu-social.git allow 0 in numeric entries in othersettings --- diff --git a/actions/othersettings.php b/actions/othersettings.php index ba3bdd8872..8d6e004047 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');