diff --git a/sections/staffpm/unresolve.php b/sections/staffpm/unresolve.php index e16754eb..0ca70d63 100644 --- a/sections/staffpm/unresolve.php +++ b/sections/staffpm/unresolve.php @@ -1,7 +1,10 @@ if ($ID = (int)($_GET['id'])) { // Check if conversation belongs to user - $DB->query("SELECT UserID, Level, AssignedToUser FROM staff_pm_conversations WHERE ID=$ID"); + $DB->query(" + SELECT UserID, Level, AssignedToUser + FROM staff_pm_conversations + WHERE ID=$ID"); list($UserID, $Level, $AssignedToUser) = $DB->next_record(); if ($UserID == $LoggedUser['ID'] || ($IsFLS && $Level == 0) || @@ -11,7 +14,10 @@ }*/ // Conversation belongs to user or user is staff, unresolve it - $DB->query("UPDATE staff_pm_conversations SET Status='Unanswered' WHERE ID=$ID"); + $DB->query(" + UPDATE staff_pm_conversations + SET Status='Unanswered' + WHERE ID=$ID"); // Clear cache for user $Cache->delete_value('num_staff_pms_'.$LoggedUser['ID']); diff --git a/sections/staffpm/user_inbox.php b/sections/staffpm/user_inbox.php index ace97c10..4bb19c3c 100644 --- a/sections/staffpm/user_inbox.php +++ b/sections/staffpm/user_inbox.php @@ -26,7 +26,7 @@