aboutsummaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/functions.php2
-rw-r--r--includes/sql.class.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/includes/functions.php b/includes/functions.php
index bc169ff..4db70c5 100644
--- a/includes/functions.php
+++ b/includes/functions.php
@@ -469,7 +469,7 @@ define('BAYONET_LOG_ERROR','bayonet_log_error');
define('BAYONET_LOG_WARN','bayonet_log_warn');
define('BAYONET_LOG_INFO','bayonet_log_info');
-function WriteLog($message,$flag)
+function WriteLogBayonet($message,$flag)
{
global $config;
$enabled = $config['logs']['enabled'];
diff --git a/includes/sql.class.php b/includes/sql.class.php
index 3b93e2a..2bdb996 100644
--- a/includes/sql.class.php
+++ b/includes/sql.class.php
@@ -116,8 +116,8 @@ class Bayonet_SQL
decho("Fetching single row");
- while ($row = mysqli_fetch_row($p_result)) {
- $result[] = $row;
+ while ($row = mysqli_fetch_assoc($p_result)) {
+ $result = $row;
}
$this->Free($p_result);