Permalink
Browse files

Replace else if with elseif

  • Loading branch information...
1 parent 89b4298 commit 1153b4e61ed333f07873942093c46da866508cc0 @MonkeyMaster committed Oct 28, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 framework/zii/widgets/grid/CGridView.php
@@ -333,7 +333,7 @@ protected function initColumns()
{
if($this->dataProvider instanceof CActiveDataProvider)
$this->columns=$this->dataProvider->model->attributeNames();
- else if($this->dataProvider instanceof IDataProvider)
+ elseif($this->dataProvider instanceof IDataProvider)
{
// use the keys of the first row of data as the default columns
$data=$this->dataProvider->getData();
@@ -474,7 +474,7 @@ public function renderTableHeader()
echo "</thead>\n";
}
- else if($this->filter!==null && ($this->filterPosition===self::FILTER_POS_HEADER || $this->filterPosition===self::FILTER_POS_BODY))
+ elseif($this->filter!==null && ($this->filterPosition===self::FILTER_POS_HEADER || $this->filterPosition===self::FILTER_POS_BODY))
{
echo "<thead>\n";
$this->renderFilter();
@@ -554,7 +554,7 @@ public function renderTableRow($row)
$data=$this->dataProvider->data[$row];
$class=$this->evaluateExpression($this->rowCssClassExpression,array('row'=>$row,'data'=>$data));
}
- else if(is_array($this->rowCssClass) && ($n=count($this->rowCssClass))>0)
+ elseif(is_array($this->rowCssClass) && ($n=count($this->rowCssClass))>0)
$class=$this->rowCssClass[$row%$n];
else
$class='';

0 comments on commit 1153b4e

Please sign in to comment.