CIM37 - Performance update
This commit is contained in:
@@ -141,8 +141,13 @@ switch ($action) {
|
||||
break;
|
||||
|
||||
case 'geolocation':
|
||||
|
||||
$sql = 'SELECT e.* FROM equipment e '.$whereclause.'';
|
||||
|
||||
if ($whereclause == ''){
|
||||
$whereclause = 'WHERE geolocation is not null';
|
||||
} else {
|
||||
$whereclause .= ' AND geolocation is not null';
|
||||
}
|
||||
$sql = 'SELECT distinct(geolocation) FROM equipment e '.$whereclause.'';
|
||||
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user