1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 15:45:34 +02:00

check for additional empty config variables...

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10249 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2009-11-01 15:33:44 +00:00
parent 5553cfc2ed
commit b5c4dc3284

View File

@ -1064,17 +1064,12 @@ class parse_message extends bbcode_firstpass
$this->mode = $mode; $this->mode = $mode;
if (!isset($config['max_' . $mode . '_chars'])) foreach (array('chars', 'smilies', 'urls', 'font_size', 'img_height', 'img_width') as $key)
{ {
$config['max_' . $mode . '_chars'] = 0; if (!isset($config['max_' . $mode . '_' . $key]))
{
$config['max_' . $mode . '_' . $key] = 0;
} }
if (!isset($config['max_' . $mode . '_smilies']))
{
$config['max_' . $mode . '_smilies'] = 0;
}
if (!isset($config['max_' . $mode . '_urls']))
{
$config['max_' . $mode . '_urls'] = 0;
} }
$this->allow_img_bbcode = $allow_img_bbcode; $this->allow_img_bbcode = $allow_img_bbcode;