diff --git a/framework/yii/bootstrap/Modal.php b/framework/yii/bootstrap/Modal.php index 7dfac70..e1f042f 100644 --- a/framework/yii/bootstrap/Modal.php +++ b/framework/yii/bootstrap/Modal.php @@ -204,10 +204,12 @@ class Modal extends Widget 'tabindex' => -1, ), $this->options); Html::addCssClass($this->options, 'modal'); - - $this->clientOptions = array_merge(array( - 'show' => false, - ), $this->clientOptions); + + if ($this->clientOptions !== false) { + $this->clientOptions = array_merge(array( + 'show' => false, + ), $this->clientOptions); + } if ($this->closeButton !== null) { $this->closeButton = array_merge(array(