From 16a40b9df9e9f4ba1f5278e389fe1939788cfbcf Mon Sep 17 00:00:00 2001 From: Adalen Vladi Date: Fri, 10 Aug 2018 12:39:19 +0200 Subject: [PATCH] Update SongsController.php --- application/Controller/SongsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Controller/SongsController.php b/application/Controller/SongsController.php index b791c06..234556d 100644 --- a/application/Controller/SongsController.php +++ b/application/Controller/SongsController.php @@ -96,7 +96,7 @@ public function editSong($song_id) $song = $Song->getSong($song_id); // If the song wasn't found, then it would have returned false, and we need to display the error page - if ($song === false) { + if (!$song) { $page = new \Mini\Controller\ErrorController(); $page->index(); } else {