Inconsistency of using DATABASE_PREFIX with getOne()

This commit is contained in:
Minh Cuong Tran
2024-02-28 16:56:39 +01:00
parent 06ddd19378
commit a7953f05bb
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ class Users
$db = getDbInstance();
$db->where('id', $id);
$result = $db->getOne(DATABASE_PREFIX.'users');
$result = $db->getOne('users');
if($result !== NULL)
return $result;