Skip to content

Commit

Permalink
Merge pull request #2 from smartarello/1.6.9_fixed_for_PHP7_by_CrossK…
Browse files Browse the repository at this point in the history
…nowledge

Fixed the function select() to be compliant with PHP 7.2
  • Loading branch information
smartarello authored Jun 4, 2018
2 parents 13c136c + bfb0e1b commit 749cbba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/lib/query/ModelCriteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ public function offset($offset)
*/
public function select($columnArray)
{
if (!count($columnArray) || $columnArray == '') {
if (empty($columnArray)) {
throw new PropelException('You must ask for at least one column');
}

Expand Down

0 comments on commit 749cbba

Please sign in to comment.