Check for empty strings before indexing into them. Fixes #15265 props solarissmoke.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-10-31 09:29:57 +00:00
parent 51c714b256
commit 0597ad55c4
1 changed files with 1 additions and 1 deletions

View File

@ -1546,7 +1546,7 @@ function wp_tiny_mce( $teeny = false, $settings = false ) {
$val = $v ? 'true' : 'false'; $val = $v ? 'true' : 'false';
$mce_options .= $k . ':' . $val . ', '; $mce_options .= $k . ':' . $val . ', ';
continue; continue;
} elseif ( is_string($v) && ( '{' == $v{0} || '[' == $v{0} ) ) { } elseif ( !empty($v) && is_string($v) && ( '{' == $v{0} || '[' == $v{0} ) ) {
$mce_options .= $k . ':' . $v . ', '; $mce_options .= $k . ':' . $v . ', ';
continue; continue;
} }