From fe2a8612213e220234a97cb81bc548c0d9df71fa Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Mon, 17 May 2021 22:35:23 -0700 Subject: [PATCH] Fix flatfile database mode Resolves #217. --- inc/database/flatfile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/database/flatfile.php b/inc/database/flatfile.php index 46a76c5..2a45d3f 100644 --- a/inc/database/flatfile.php +++ b/inc/database/flatfile.php @@ -7,7 +7,7 @@ if (!defined('TINYIB_BOARD')) { function accountByID($id) { $rows = $GLOBALS['db']->selectWhere(ACCOUNTS_FILE, new SimpleWhereClause(ACCOUNT_ID, '=', $id, INTEGER_COMPARISON), 1); if (isset($rows[0])) { - return $rows[0]; + return convertAccountsToSQLStyle(array($rows[0]), true); } return array(); } @@ -15,7 +15,7 @@ function accountByID($id) { function accountByUsername($username) { $rows = $GLOBALS['db']->selectWhere(ACCOUNTS_FILE, new SimpleWhereClause(ACCOUNT_USERNAME, '=', $username, STRING_COMPARISON), 1); if (isset($rows[0])) { - return $rows[0]; + return convertAccountsToSQLStyle(array($rows[0]), true); } return array(); }