mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
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
3899b10249
commit
cfaa1c0bbb
@ -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>
|
2010-03-09 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* godmode/gis_maps/configure_gis_map.php: fix the request var when it is
|
* 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);
|
LIMIT " . $config['block_size'] . " OFFSET " . get_parameter ('offset',0);
|
||||||
$agents = process_sql($sql);
|
$agents = process_sql($sql);
|
||||||
|
|
||||||
$sql = "SELECT count(id_agente)
|
$sql = "SELECT count(id_agente) AS count
|
||||||
FROM tagente
|
FROM tagente
|
||||||
INNER JOIN tgrupo
|
INNER JOIN tgrupo
|
||||||
ON tgrupo.id_grupo = tagente.id_grupo
|
ON tgrupo.id_grupo = tagente.id_grupo
|
||||||
WHERE tagente.nombre COLLATE utf8_general_ci LIKE '%" . $stringSearchSQL . "%' OR
|
WHERE tagente.nombre COLLATE utf8_general_ci LIKE '%" . $stringSearchSQL . "%' OR
|
||||||
tgrupo.nombre LIKE '%" . $stringSearchSQL . "%'";
|
tgrupo.nombre LIKE '%" . $stringSearchSQL . "%'";
|
||||||
$totalAgents = get_db_row_sql($sql);
|
$totalAgents = get_db_row_sql($sql);
|
||||||
$totalAgents = $totalAgents[0];
|
|
||||||
|
$totalAgents = $totalAgents['count'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user