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 @@ 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 @@

Staff PMs


@@ -40,7 +40,6 @@ ?>

No messages

@@ -62,11 +61,13 @@ if ($Unread === '1') { $RowClass = 'unreadpm'; } else { - $Row = ($Row === 'a') ? 'b' : 'a'; + $Row = (($Row === 'a') ? 'b' : 'a'); $RowClass = 'row'.$Row; } - if ($Status == 'Resolved') { $ShowBox++; } + if ($Status == 'Resolved') { + $ShowBox++; + } if ($ShowBox == 2) { // First resolved PM ?> @@ -86,12 +87,13 @@ // Get assigned $Assigned = ($Level == 0) ? 'First Line Support' : $ClassLevels[$Level]['Name']; // No + on Sysops - if ($Assigned != 'Sysop') { $Assigned .= '+'; } + if ($Assigned != 'Sysop') { + $Assigned .= '+'; + } // Table row ?> - @@ -107,9 +109,7 @@ diff --git a/sections/staffpm/viewconv.php b/sections/staffpm/viewconv.php index 619d9e13..9cf0a09d 100644 --- a/sections/staffpm/viewconv.php +++ b/sections/staffpm/viewconv.php @@ -62,7 +62,10 @@
query("SELECT UserID, SentDate, Message, ID FROM staff_pm_messages WHERE ConvID=$ConvID"); + $StaffPMs = $DB->query(" + SELECT UserID, SentDate, Message, ID + FROM staff_pm_messages + WHERE ConvID=$ConvID"); while (list($UserID, $SentDate, $Message, $MessageID) = $DB->next_record()) { // Set user string @@ -77,11 +80,12 @@ $Username = $UserInfo['Username']; } ?> -
+
+ tag is an ugly hack. get rid of it. ?> + # - @@ -90,7 +94,7 @@
full_format($Message)?>
-
+
set_query_id($StaffPMs); } @@ -128,7 +132,7 @@

Reply

@@ -148,14 +152,14 @@