Commit 974de6f5c9412bad5f94f9345153e26008bf3660
1 parent
96ec7824
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
admin/php/classe_metaestat.php
... | ... | @@ -1617,9 +1617,9 @@ class Metaestat{ |
1617 | 1617 | $q = $dbh->query($sql,PDO::FETCH_ASSOC); |
1618 | 1618 | $r = array(); |
1619 | 1619 | if($q){ |
1620 | - $r = $q->fetchAll()[0]; | |
1620 | + $r = $q->fetchAll(); | |
1621 | 1621 | } |
1622 | - return $r; | |
1622 | + return $r[0]; | |
1623 | 1623 | } |
1624 | 1624 | function listaAgregaRegiao($codigo_tipo_regiao,$id_agregaregiao=""){ |
1625 | 1625 | $sql = "select * from ".$this->esquemaadmin."i3geoestat_agregaregiao "; | ... | ... |