From bfb0e1b920970450739838a79add0848206b1ffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Martarello?= Date: Mon, 4 Jun 2018 09:14:01 +0200 Subject: [PATCH] Fixed the function select() to be compliant with PHP 7.2 --- runtime/lib/query/ModelCriteria.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/lib/query/ModelCriteria.php b/runtime/lib/query/ModelCriteria.php index ac498c8ab..732b3b119 100644 --- a/runtime/lib/query/ModelCriteria.php +++ b/runtime/lib/query/ModelCriteria.php @@ -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'); }