mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-31 02:21:36 +00:00
Allow blank redirect ID when adding artist aliases
This commit is contained in:
parent
7a64bf0d36
commit
faa6c0c055
@ -5,8 +5,9 @@
|
||||
$ArtistID = $_POST['artistid'];
|
||||
$Redirect = $_POST['redirect'];
|
||||
$AliasName = db_string($_POST['name']);
|
||||
if(!$Redirect) { $Redirect = 0; }
|
||||
|
||||
if(!is_number($ArtistID) || !($Redirect == "0" || is_number($Redirect)) || !$ArtistID) {
|
||||
if(!is_number($ArtistID) || !($Redirect == 0 || is_number($Redirect)) || !$ArtistID) {
|
||||
error(0);
|
||||
}
|
||||
|
||||
@ -14,8 +15,6 @@
|
||||
error('Blank artist name');
|
||||
}
|
||||
|
||||
if(!$Redirect) { $Redirect = 0; }
|
||||
|
||||
/*
|
||||
* In the case of foo, who released an album before changing his name to bar and releasing another
|
||||
* the field shared to make them appear on the same artist page is the ArtistID
|
||||
|
Loading…
Reference in New Issue
Block a user