mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-12 18:36:29 +00:00
Empty commit
This commit is contained in:
parent
971c7a40b3
commit
beb0c8362e
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user