Development

Changeset 4013

You must first sign up to be able to contribute.

Changeset 4013

Show
Ignore:
Timestamp:
05/16/07 01:31:46 (2 years ago)
Author:
Jonathan.Wage
Message:

sfDataGridPlugin: Fixed error with paging disabled.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfDataGridPlugin/lib/BasesfDataGrid.class.php

    r4009 r4013  
    886886  { 
    887887    $this->rowsPerPage = $rowsPerPage; 
    888     $this->getPager()->setMaxPerPage($rowsPerPage); 
     888     
     889    if( $pager = $this->getPager() ) 
     890    { 
     891      $pager->setMaxPerPage($rowsPerPage); 
     892    } 
    889893  } 
    890894