From de78c1369a6ddf9ed293109450d0c2b80d93d642 Mon Sep 17 00:00:00 2001
From: Alan Lord <alanslists@gmail.com>
Date: Thu, 4 Jun 2020 12:15:58 +0100
Subject: [PATCH] Fix typo in patch. array_map expects string for function
 name. 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 c58908b5f..8c508df1e 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