Skip to content

Commit

Permalink
check for null on lookup failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Spine authored and itismadness committed Oct 4, 2021
1 parent 533f9bc commit 821ab6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sections/ajax/artist.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
json_die("failure", "cannot set both id and artistname");
}
$artist = $artistMan->findById((int)$_GET['id'], $revisionId);
if (!$artist) {
if (is_null($artist)) {
json_die("failure", "bad id");
}
} elseif (isset($_GET['artistname'])) {
Expand Down

0 comments on commit 821ab6d

Please sign in to comment.