From b95d716f49c1692a3824c3ffa021e878dfc3db11 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Fri, 8 Aug 2014 13:53:10 +0400 Subject: [PATCH] Fixed condition for #4595 --- Modal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modal.php b/Modal.php index b7b04c1..d8d70cb 100644 --- a/Modal.php +++ b/Modal.php @@ -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'])) {