Typo: use proper case of db class
This commit is contained in:
parent
27a7fbe45d
commit
1823f15611
@ -49,7 +49,7 @@
|
||||
*/
|
||||
public function __construct($positionId = NULL) {
|
||||
|
||||
self::$db = uDB::getInstance();
|
||||
self::$db = uDb::getInstance();
|
||||
|
||||
if (!empty($positionId)) {
|
||||
$query = "SELECT p.id, p.time, p.user_id, p.track_id,
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
public function __construct($trackId = NULL) {
|
||||
|
||||
self::$db = uDB::getInstance();
|
||||
self::$db = uDb::getInstance();
|
||||
|
||||
if (!empty($trackId)) {
|
||||
$stmt = self::$db->prepare("SELECT id, user_id, name, comment FROM tracks WHERE id = ? LIMIT 1");
|
||||
|
@ -42,7 +42,7 @@
|
||||
* @param string $login Login
|
||||
*/
|
||||
public function __construct($login = NULL) {
|
||||
self::$db = uDB::getInstance();
|
||||
self::$db = uDb::getInstance();
|
||||
if (!empty($login)) {
|
||||
$stmt = self::$db->prepare("SELECT id, login, password FROM users WHERE login = ? LIMIT 1");
|
||||
$stmt->bind_param('s', $login);
|
||||
|
Loading…
x
Reference in New Issue
Block a user