1. Nikola Kovacs
  2. yii-bootstrap

Commits

Nikola Kovacs  committed 3afe4a3 Draft

Avoid php notice

  • Participants
  • Parent commits aa812b4
  • Branches default

Comments (0)

Files changed (1)

File widgets/TbAlert.php

View file
 				if ($this->closeText !== false && !isset($alert['closeText']))
 					$alert['closeText'] = $this->closeText;
 
-				if ($alert['closeText'] !== false)
+				if (isset($alert['closeText']) && $alert['closeText'] !== false)
 					echo '<a class="close" data-dismiss="alert">'.$alert['closeText'].'</a>';
 
 				echo Yii::app()->user->getFlash($type);