2010-03-09 Miguel de Dios <miguel.dedios@artica.es>
* operation/search_results.php: fixed the result when call a function db with new method. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2494 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
dcf9036315
commit
b4519a08ed
|
@ -1,3 +1,8 @@
|
|||
2010-03-09 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* operation/search_results.php: fixed the result when call a function db
|
||||
with new method.
|
||||
|
||||
2010-03-09 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/gis_maps/configure_gis_map.php: fix the request var when it is
|
||||
|
|
|
@ -50,14 +50,15 @@ if ($searchTab == 'agents') {
|
|||
LIMIT " . $config['block_size'] . " OFFSET " . get_parameter ('offset',0);
|
||||
$agents = process_sql($sql);
|
||||
|
||||
$sql = "SELECT count(id_agente)
|
||||
$sql = "SELECT count(id_agente) AS count
|
||||
FROM tagente
|
||||
INNER JOIN tgrupo
|
||||
ON tgrupo.id_grupo = tagente.id_grupo
|
||||
WHERE tagente.nombre COLLATE utf8_general_ci LIKE '%" . $stringSearchSQL . "%' OR
|
||||
tgrupo.nombre LIKE '%" . $stringSearchSQL . "%'";
|
||||
$totalAgents = get_db_row_sql($sql);
|
||||
$totalAgents = $totalAgents[0];
|
||||
|
||||
$totalAgents = $totalAgents['count'];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue