@@ -17,16 +17,18 @@ |
||
17 | 17 | public function queryFetch( $_query ) { |
18 | 18 | $result = $this->stdQuery($_query); |
19 | 19 | $rows = []; |
20 | - while($row = pg_fetch_assoc($result)) |
|
21 | - $rows[] = $row; |
|
20 | + while($row = pg_fetch_assoc($result)) { |
|
21 | + $rows[] = $row; |
|
22 | + } |
|
22 | 23 | pg_free_result($result); |
23 | 24 | return $rows; |
24 | 25 | } |
25 | 26 | public function queryArray( $_query ) { |
26 | 27 | $result = $this->stdQuery($_query); |
27 | 28 | $rows = []; |
28 | - while($row = pg_fetch_array($result)) |
|
29 | - $rows[] = $row; |
|
29 | + while($row = pg_fetch_array($result)) { |
|
30 | + $rows[] = $row; |
|
31 | + } |
|
30 | 32 | pg_free_result($result); |
31 | 33 | return $rows; |
32 | 34 | } |