Empty commit

This commit is contained in:
Git 2015-03-28 08:00:28 +00:00
parent 971c7a40b3
commit beb0c8362e

View File

@ -15,22 +15,24 @@
error(403);
}
$DB->query("
SELECT ID, Deleted
FROM collages
WHERE Name = '".db_string($_POST['name'])."'
AND ID != '$CollageID'
LIMIT 1");
if ($DB->has_results()) {
list($ID, $Deleted) = $DB->next_record();
if ($Deleted) {
$Err = 'A collage with that name already exists but needs to be recovered, please <a href="staffpm.php">contact</a> the staff team!';
} else {
$Err = "A collage with that name already exists: <a href=\"/collages.php?id=$ID\">$_POST[name]</a>.";
if (isset($_POST['name'])) {
$DB->query("
SELECT ID, Deleted
FROM collages
WHERE Name = '".db_string($_POST['name'])."'
AND ID != '$CollageID'
LIMIT 1");
if ($DB->has_results()) {
list($ID, $Deleted) = $DB->next_record();
if ($Deleted) {
$Err = 'A collage with that name already exists but needs to be recovered, please <a href="staffpm.php">contact</a> the staff team!';
} else {
$Err = "A collage with that name already exists: <a href=\"/collages.php?id=$ID\">$_POST[name]</a>.";
}
$ErrNoEscape = true;
include(SERVER_ROOT.'/sections/collages/edit.php');
die();
}
$ErrNoEscape = true;
include(SERVER_ROOT.'/sections/collages/edit.php');
die();
}
$TagList = explode(',', $_POST['tags']);