From 2ac5fd3dcf7ec093b73670e9c0853ce8b57c6835 Mon Sep 17 00:00:00 2001 From: Alan Lord <alanslists@gmail.com> Date: Wed, 3 Jun 2020 11:28:07 +0100 Subject: [PATCH] Fix typo. Refs #1297 --- include/Webservices/VTQL_Parser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Webservices/VTQL_Parser.php b/include/Webservices/VTQL_Parser.php index 77ed23d88..c58908b5f 100644 --- a/include/Webservices/VTQL_Parser.php +++ b/include/Webservices/VTQL_Parser.php @@ -1185,7 +1185,7 @@ $this->out['column_list'][] = 'count(*)'; #line 1191 "e:\workspace\nonadmin\pkg\vtiger\extensions\Webservices\VTQL_parser.php" #line 30 "e:\workspace\nonadmin\pkg\vtiger\extensions\Webservices\VTQL_parser.y" function yy_r7(){ -if(!in_array("*", $this->out["column_list"]) && !in_array("count(*)", array_map(strtolower, $this->out["column_list"]))){ +if(!in_array("*", $this->out["column_list"]) && !in_array("count(*)", array_map(strtolower($this->out["column_list"])))){ if(!in_array("id",$this->out["column_list"])){ $this->out["column_list"][] = "id"; } @@ -1332,7 +1332,7 @@ $fieldcol = $meta->getFieldColumnMapping(); $columns = array(); if(in_array('*', $this->out['column_list'])){ $columns = array_values($fieldcol); -}elseif( !in_array('count(*)', array_map(strtolower, $this->out['column_list']))){ +}elseif( !in_array('count(*)', array_map(strtolower($this->out['column_list'])))){ foreach($this->out['column_list'] as $ind=>$field){ $columns[] = $fieldcol[$field]; } -- GitLab