forked from GithubBackups/tinyib
parent
4e6d3a76ca
commit
fe2a861221
@ -7,7 +7,7 @@ if (!defined('TINYIB_BOARD')) {
|
|||||||
function accountByID($id) {
|
function accountByID($id) {
|
||||||
$rows = $GLOBALS['db']->selectWhere(ACCOUNTS_FILE, new SimpleWhereClause(ACCOUNT_ID, '=', $id, INTEGER_COMPARISON), 1);
|
$rows = $GLOBALS['db']->selectWhere(ACCOUNTS_FILE, new SimpleWhereClause(ACCOUNT_ID, '=', $id, INTEGER_COMPARISON), 1);
|
||||||
if (isset($rows[0])) {
|
if (isset($rows[0])) {
|
||||||
return $rows[0];
|
return convertAccountsToSQLStyle(array($rows[0]), true);
|
||||||
}
|
}
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
@ -15,7 +15,7 @@ function accountByID($id) {
|
|||||||
function accountByUsername($username) {
|
function accountByUsername($username) {
|
||||||
$rows = $GLOBALS['db']->selectWhere(ACCOUNTS_FILE, new SimpleWhereClause(ACCOUNT_USERNAME, '=', $username, STRING_COMPARISON), 1);
|
$rows = $GLOBALS['db']->selectWhere(ACCOUNTS_FILE, new SimpleWhereClause(ACCOUNT_USERNAME, '=', $username, STRING_COMPARISON), 1);
|
||||||
if (isset($rows[0])) {
|
if (isset($rows[0])) {
|
||||||
return $rows[0];
|
return convertAccountsToSQLStyle(array($rows[0]), true);
|
||||||
}
|
}
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user