diff --git a/.gitignore b/.gitignore index 2eea525..b89ae65 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.env \ No newline at end of file +.env +/vendor/ diff --git a/app/config/config.php b/app/config/config.php index 2e13e95..4385ee6 100644 --- a/app/config/config.php +++ b/app/config/config.php @@ -1,6 +1,6 @@ db->prepareQuery($query); $stmt->bindParam(1, $username); $stmt->bindParam(2, $password); $stmt->execute(); - $result = $stmt->fetch(PDO::FETCH_ASSOC); - return ($result === false) ? false : $result; + return $stmt->fetch(PDO::FETCH_ASSOC); } } diff --git a/app/models/Students.php b/app/models/Students.php index 5e44695..dd1577c 100644 --- a/app/models/Students.php +++ b/app/models/Students.php @@ -2,8 +2,6 @@ namespace App\Models; -require_once __DIR__ . '/../core/Model.php'; - use App\Core\Model; diff --git a/app/routes/api.php b/app/routes/api.php index 2e96d20..5856e90 100644 --- a/app/routes/api.php +++ b/app/routes/api.php @@ -1,7 +1,6 @@