From 1ea6c5acddbc8ffb3a536a5cc0a72ec5058501f0 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Wed, 23 Oct 2013 11:50:27 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=BC=D0=B5=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D0=B8?= =?UTF-8?q?=20trim=20=D0=B2=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D0=B5=20SqlCr?= =?UTF-8?q?iteria.select()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/SqlCriteria.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/SqlCriteria.php b/model/SqlCriteria.php index 3da0777..106cf9e 100644 --- a/model/SqlCriteria.php +++ b/model/SqlCriteria.php @@ -134,7 +134,7 @@ class SqlCriteria */ public function select($fields) { - $fields = explode(',', $fields); + $fields = array_map(function($item){return trim($item);},explode(',', $fields)); $this->select = array_merge($this->select,$fields); return $this; }