|
From: Meik S. <acy...@ph...> - 2009-11-01 15:34:34
|
Author: acydburn
Date: Sun Nov 1 15:33:44 2009
New Revision: 10249
Log:
check for additional empty config variables...
Modified:
branches/phpBB-3_0_0/phpBB/includes/message_parser.php
Modified: branches/phpBB-3_0_0/phpBB/includes/message_parser.php
==============================================================================
*** branches/phpBB-3_0_0/phpBB/includes/message_parser.php (original)
--- branches/phpBB-3_0_0/phpBB/includes/message_parser.php Sun Nov 1 15:33:44 2009
***************
*** 1064,1080 ****
$this->mode = $mode;
! if (!isset($config['max_' . $mode . '_chars']))
! {
! $config['max_' . $mode . '_chars'] = 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;
--- 1064,1075 ----
$this->mode = $mode;
! foreach (array('chars', 'smilies', 'urls', 'font_size', 'img_height', 'img_width') as $key)
{
! if (!isset($config['max_' . $mode . '_' . $key]))
! {
! $config['max_' . $mode . '_' . $key] = 0;
! }
}
$this->allow_img_bbcode = $allow_img_bbcode;
|