aboutsummaryrefslogtreecommitdiff
path: root/includes/sql.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/sql.class.php')
-rw-r--r--includes/sql.class.php23
1 files changed, 11 insertions, 12 deletions
diff --git a/includes/sql.class.php b/includes/sql.class.php
index 30b87e4..6bda00f 100644
--- a/includes/sql.class.php
+++ b/includes/sql.class.php
@@ -73,20 +73,19 @@ class Bayonet_SQL
}
public function FetchArray($p_result)
- {
- global $db_fetches;
- $db_fetches++;
+ {
+ global $db_fetches;
+ $db_fetches++;
+ decho('Fetching result');
- decho('Fetching result');
-
- while ($row = mysqli_fetch_array($p_result, MYSQLI_ASSOC)) {
- $result[] = $row;
- }
-
- $this->Free($p_result);
-
- return is_array($result) ? $result : array();
+ while ($row = mysqli_fetch_array($p_result, MYSQLI_ASSOC))
+ {
+ $result[] = $row;
}
+ $this->Free($p_result);
+
+ return is_array($result) ? $result : array();
+ }
public function FetchObject($p_result, $class, $no_array = false)
{