From 186c5ca8978766c12358a9c3f0344b74c1850ceb Mon Sep 17 00:00:00 2001 From: Git Date: Sat, 6 Jul 2013 08:00:55 +0000 Subject: [PATCH] Empty commit --- sections/artist/take_warn.php | 3 +-- sections/requests/take_warn.php | 2 +- sections/requests/takenew_edit.php | 2 +- sections/torrents/take_warn.php | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/sections/artist/take_warn.php b/sections/artist/take_warn.php index 6ccbe381..6f6aa989 100644 --- a/sections/artist/take_warn.php +++ b/sections/artist/take_warn.php @@ -28,14 +28,13 @@ } else { $Subject = 'You have received a verbal warning'; $PrivateMessage = "You have received a verbal warning for [url=$URL]this post.[/url]\n\n" . $PrivateMessage; - $AdminComment = date('Y-m-d') . ' - Verbally warned by ' . $LoggedUser['Username'] . " for $URL \nReason: $Reason\n\n"; + Tools::update_user_notes($UserID,$AdminComment); } $DB->query(" INSERT INTO users_warnings_forums (UserID, Comment) VALUES('$UserID', '" . db_string($AdminComment) . "') ON DUPLICATE KEY UPDATE Comment = CONCAT('" . db_string($AdminComment) . "', Comment)"); -Tools::update_user_notes($UserID,$AdminComment); Misc::send_pm($UserID, $LoggedUser['ID'], $Subject, $PrivateMessage); // Mainly diff --git a/sections/requests/take_warn.php b/sections/requests/take_warn.php index ceef6f3e..fe6719e2 100644 --- a/sections/requests/take_warn.php +++ b/sections/requests/take_warn.php @@ -29,11 +29,11 @@ $Subject = 'You have received a verbal warning'; $PrivateMessage = "You have received a verbal warning for [url=$URL]this post.[/url]\n\n" . $PrivateMessage; $AdminComment = date('Y-m-d') . ' - Verbally warned by ' . $LoggedUser['Username'] . " for $URL \nReason: $Reason\n\n"; + Tools::update_user_notes($UserID, $AdminComment); } $DB->query(" INSERT INTO users_warnings_forums (UserID, Comment) VALUES('$UserID', '" . db_string($AdminComment) . "') ON DUPLICATE KEY UPDATE Comment = CONCAT('" . db_string($AdminComment) . "', Comment)"); -Tools::update_user_notes($UserID, $AdminComment); Misc::send_pm($UserID, $LoggedUser['ID'], $Subject, $PrivateMessage); $DB->query(" diff --git a/sections/requests/takenew_edit.php b/sections/requests/takenew_edit.php index 85609760..4b63c68a 100644 --- a/sections/requests/takenew_edit.php +++ b/sections/requests/takenew_edit.php @@ -164,7 +164,7 @@ } if (($NeedCue || $NeedLog)) { - if (empty($_POST['all_media']) && $MediaArray[0] == 0) { + if (empty($_POST['all_media']) && !(in_array('0',$MediaArray))) { $Err = 'Only CD is allowed as media for FLAC + log/cue requests.'; } } diff --git a/sections/torrents/take_warn.php b/sections/torrents/take_warn.php index 2789d642..3f0d6e7b 100644 --- a/sections/torrents/take_warn.php +++ b/sections/torrents/take_warn.php @@ -29,12 +29,12 @@ $Subject = 'You have received a verbal warning'; $PrivateMessage = "You have received a verbal warning for [url=$URL]this post.[/url]\n\n" . $PrivateMessage; $AdminComment = date('Y-m-d') . ' - Verbally warned by ' . $LoggedUser['Username'] . " for $URL \nReason: $Reason\n\n"; + Tools::update_user_notes($UserID, $AdminComment); } $DB->query(" INSERT INTO users_warnings_forums (UserID, Comment) VALUES('$UserID', '" . db_string($AdminComment) . "') ON DUPLICATE KEY UPDATE Comment = CONCAT('" . db_string($AdminComment) . "', Comment)"); -Tools::update_user_notes($UserID, $AdminComment); Misc::send_pm($UserID, $LoggedUser['ID'], $Subject, $PrivateMessage); // Mainly