2011-11-30 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_agents.php: Fixed bad sql sintax in agents_get_agents funtion. Fixes: #3445995 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5215 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
b20b935f13
commit
12f0c69912
|
@ -1,3 +1,10 @@
|
||||||
|
2011-11-30 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
|
* include/functions_agents.php: Fixed bad sql sintax in
|
||||||
|
agents_get_agents funtion.
|
||||||
|
|
||||||
|
Fixes: #3445995
|
||||||
|
|
||||||
2011-11-30 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
2011-11-30 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
* operation/agentes/estado_generalagente.php
|
* operation/agentes/estado_generalagente.php
|
||||||
|
|
|
@ -389,7 +389,10 @@ function agents_get_agents ($filter = false, $fields = false, $access = 'AR', $o
|
||||||
}
|
}
|
||||||
|
|
||||||
if($extra) {
|
if($extra) {
|
||||||
$where = sprintf('%s AND (%s OR %s)', $where, $where_nogroup, $sql_extra);
|
if (empty($where_nogroup))
|
||||||
|
$where = sprintf('%s AND (%s)', $where, $sql_extra);
|
||||||
|
else
|
||||||
|
$where = sprintf('%s AND (%s OR %s)', $where, $where_nogroup, $sql_extra);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$where = sprintf('%s AND %s', $where, $where_nogroup);
|
$where = sprintf('%s AND %s', $where, $where_nogroup);
|
||||||
|
|
Loading…
Reference in New Issue