Commit 62c406a4 authored by RobertPlummer's avatar RobertPlummer

[FIX] null check and variable existance

parent 4c57d51a
......@@ -5,6 +5,7 @@
font: 1em Arial,Helvetica,sans-serif ! important;
font-size: 1em ! important;
clear: both;
height: auto !important;
}
/*from the codemirror website*/
......
......@@ -756,6 +756,10 @@ class ToolbarBlock extends ToolbarInline // Will change in the future
$isFutureLinkProtocol = true;
}
$label = null;
$wysiwyg = null;
$syntax = null;
switch( $tagName ) {
case 'center':
$label = tra('Align Center');
......@@ -1962,7 +1966,7 @@ class ToolbarsList
global $toolbarPickerIndex;
$toolbarPickerIndex = -1;
$list = new self;
$list->wysiwyg = ($params['_wysiwyg'] === 'y');
$list->wysiwyg = (isset($params['_wysiwyg']) && $params['_wysiwyg'] === 'y');
$list->is_html = !empty($params['_is_html']);
$string = preg_replace('/\s+/', '', $string);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment