From 1823f1561142381d80273c1b30c5a2d25ffdb166 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Sun, 16 Apr 2017 22:45:56 +0200 Subject: [PATCH] Typo: use proper case of db class --- helpers/position.php | 2 +- helpers/track.php | 2 +- helpers/user.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/helpers/position.php b/helpers/position.php index be4f6a5..36ab153 100644 --- a/helpers/position.php +++ b/helpers/position.php @@ -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, diff --git a/helpers/track.php b/helpers/track.php index c4a4e21..0425bf9 100644 --- a/helpers/track.php +++ b/helpers/track.php @@ -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"); diff --git a/helpers/user.php b/helpers/user.php index 41ddf54..646a380 100644 --- a/helpers/user.php +++ b/helpers/user.php @@ -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); @@ -228,4 +228,4 @@ return (!empty($config::$admin_user) && $config::$admin_user == $login); } } -?> \ No newline at end of file +?>