mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
change order direction
This commit is contained in:
parent
32159b771d
commit
2b010aca6e
@ -2320,7 +2320,7 @@ function agents_get_addresses(
|
|||||||
$id_agent,
|
$id_agent,
|
||||||
$order_by_id=false
|
$order_by_id=false
|
||||||
) {
|
) {
|
||||||
$order_clause = ($order_by_id === true) ? 'ORDER BY taddress.id_a' : '';
|
$order_clause = ($order_by_id === true) ? 'ORDER BY taddress.id_a DESC' : '';
|
||||||
|
|
||||||
if (is_array($id_agent)) {
|
if (is_array($id_agent)) {
|
||||||
$sql = sprintf(
|
$sql = sprintf(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user