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 {