- Fixed my fix :D

git-svn-id: file:///svn/phpbb/trunk@5683 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-03-21 23:45:59 +00:00
parent 6950059475
commit c5a7c26693

View file

@ -765,7 +765,7 @@ class parse_message extends bbcode_firstpass
{
$msg_len = ($mode == 'post') ? strlen($this->message) : strlen(preg_replace('#\[\/?[a-z\*\+\-]+(=[\S]+)?\]#is', ' ', $this->message));
if ($config['max_' . $mode . '_chars'] && $msg_len > $config['max_' . $mode . '_chars'])
if ((!$msg_len && $mode !== 'sig') || $config['max_' . $mode . '_chars'] && $msg_len > $config['max_' . $mode . '_chars'])
{
$this->warn_msg[] = (!$msg_len) ? $user->lang['TOO_FEW_CHARS'] : $user->lang['TOO_MANY_CHARS'];
return $this->warn_msg;