Development

Changeset 6466

You must first sign up to be able to contribute.

Changeset 6466

Show
Ignore:
Timestamp:
12/11/07 20:15:51 (5 years ago)
Author:
fabien
Message:

fixed sfPropelPager causes an "undefined offset" notice on empty result set (closes #2500 - patch from zoltan.nemeth)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/addon/propel/sfPropelPager.class.php

    r2728 r6466  
    102102    $results = call_user_func(array($this->getClassPeer(), $this->getPeerMethod()), $cForRetrieve); 
    103103 
    104     return $results[0]
     104    return is_array($results) && isset($results[0]) ? $results[0] : null
    105105  } 
    106106