Merge pull request #2468 from thomseddon/fix/GenGroupSQL

Remove last logical operator from generated SQL in GenGroupSQL
This commit is contained in:
Neil Lathwood
2015-11-20 15:32:13 +00:00
+1
View File
@@ -46,6 +46,7 @@ function GenGroupSQL($pattern, $search='') {
$pattern = str_replace($opt, $tmpp[0].'.'.$tmpp[1], $pattern);
}
}
$pattern = substr($pattern, 0, -3);
$tables = array_keys(array_flip($tables));
$x = sizeof($tables);