Commit b95d716f authored by Alexander Makarov's avatar Alexander Makarov

Fixed condition for #4595

parent f38dbf30
......@@ -168,7 +168,7 @@ class Modal extends Widget
*/
protected function renderToggleButton()
{
if ($this->toggleButton !== null) {
if ($this->toggleButton !== false) {
$tag = ArrayHelper::remove($this->toggleButton, 'tag', 'button');
$label = ArrayHelper::remove($this->toggleButton, 'label', 'Show');
if ($tag === 'button' && !isset($this->toggleButton['type'])) {
......
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