Typo: use proper case of db class

This commit is contained in:
Bartek Fabiszewski 2017-04-16 22:45:56 +02:00
parent 27a7fbe45d
commit 1823f15611
3 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@
*/ */
public function __construct($positionId = NULL) { public function __construct($positionId = NULL) {
self::$db = uDB::getInstance(); self::$db = uDb::getInstance();
if (!empty($positionId)) { if (!empty($positionId)) {
$query = "SELECT p.id, p.time, p.user_id, p.track_id, $query = "SELECT p.id, p.time, p.user_id, p.track_id,

View File

@ -40,7 +40,7 @@
*/ */
public function __construct($trackId = NULL) { public function __construct($trackId = NULL) {
self::$db = uDB::getInstance(); self::$db = uDb::getInstance();
if (!empty($trackId)) { if (!empty($trackId)) {
$stmt = self::$db->prepare("SELECT id, user_id, name, comment FROM tracks WHERE id = ? LIMIT 1"); $stmt = self::$db->prepare("SELECT id, user_id, name, comment FROM tracks WHERE id = ? LIMIT 1");

View File

@ -42,7 +42,7 @@
* @param string $login Login * @param string $login Login
*/ */
public function __construct($login = NULL) { public function __construct($login = NULL) {
self::$db = uDB::getInstance(); self::$db = uDb::getInstance();
if (!empty($login)) { if (!empty($login)) {
$stmt = self::$db->prepare("SELECT id, login, password FROM users WHERE login = ? LIMIT 1"); $stmt = self::$db->prepare("SELECT id, login, password FROM users WHERE login = ? LIMIT 1");
$stmt->bind_param('s', $login); $stmt->bind_param('s', $login);