Skip to content
Snippets Groups Projects
Commit 5bddf1e4 authored by alangrafu's avatar alangrafu
Browse files

Small syntactic sugar when results row is only 1

Instead of iterate over a row like {0.000000or row in
r.filename}{{r.value.variable}}{4.659039e-321ndfor} when there is only
one row, it is possible to access the values from
{{r.filename.value.variable}}
parent 0df76197
No related branches found
No related tags found
No related merge requests found
...@@ -87,6 +87,9 @@ class Utils{ ...@@ -87,6 +87,9 @@ class Utils{
if(sizeof($row) >0){ if(sizeof($row) >0){
array_push($obj, $row); array_push($obj, $row);
} }
if(sizeof($aux) == 1){
return $row;
}
} }
return $obj; return $obj;
} }
......
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