Skip to content
Snippets Groups Projects
Commit de78c136 authored by Alan Lord's avatar Alan Lord
Browse files

Fix typo in patch. array_map expects string for function name. Refs #1297

parent 2ac5fd3d
No related branches found
No related tags found
No related merge requests found
......@@ -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];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment