Permalink
Browse files

Fixed the empty table bug.

  • Loading branch information...
1 parent a9dc8bc commit ffdec6489ab85af06397bc697e490ac1ea7cdea9 @hijarian hijarian committed Dec 20, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 widgets/TbExtendedGridView.php
@@ -235,6 +235,10 @@ public function renderContent()
public function renderKeys()
{
$data = $this->dataProvider->getData();
+ if (empty($data))
+ {
+ return false;
+ }
if(!$this->sortableRows || !$this->getAttribute($data[0], $this->sortableAttribute))
{

0 comments on commit ffdec64

Please sign in to comment.