From 3edfb6e111d4879405c0591015b454fda01f83e2 Mon Sep 17 00:00:00 2001 From: Git Date: Tue, 21 Feb 2012 08:00:18 +0000 Subject: [PATCH] Empty commit --- design/privateheader.php | 2 +- sections/staffpm/staff_inbox.php | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/design/privateheader.php b/design/privateheader.php index a263c099..39790cbf 100644 --- a/design/privateheader.php +++ b/design/privateheader.php @@ -263,7 +263,7 @@ $NumStaffPMs = $Cache->get_value('num_staff_pms_'.$LoggedUser['ID']); if ($NumStaffPMs === false) { - $DB->query("SELECT COUNT(ID) FROM staff_pm_conversations WHERE Status='Unanswered' AND (AssignedToUser=".$LoggedUser['ID']." OR (Level >= ".$Classes[MOD]['Level']." AND Level <=".$LoggedUser['Class']."))"); + $DB->query("SELECT COUNT(ID) FROM staff_pm_conversations WHERE Status='Unanswered' AND (AssignedToUser=".$LoggedUser['ID']." OR (Level >= ".max(700,$Classes[MOD]['Level'])." AND Level <=".$LoggedUser['Class']."))"); list($NumStaffPMs) = $DB->next_record(); $Cache->cache_value('num_staff_pms_'.$LoggedUser['ID'], $NumStaffPMs , 1000); } diff --git a/sections/staffpm/staff_inbox.php b/sections/staffpm/staff_inbox.php index 2e7d0bb9..ab932adc 100644 --- a/sections/staffpm/staff_inbox.php +++ b/sections/staffpm/staff_inbox.php @@ -30,10 +30,14 @@ if ($UserLevel >= 700) { $ViewString = "My unanswered"; $WhereCondition = "WHERE ((Level >= ".max($Classes[MOD]['Level'],700)." AND Level <= $UserLevel) OR AssignedToUser='".$LoggedUser['ID']."') AND Status='Unanswered'"; - } else { - // FLS and Forum Mods - $ViewString = "Unanswered"; + } elseif ($UserLevel == 650) { + // Forum Mods + $ViewString = "My Unanswered"; $WhereCondition = "WHERE (Level = $UserLevel OR AssignedToUser='".$LoggedUser['ID']."') AND Status='Unanswered'"; + } else { + // FLS + $ViewString = "Unanswered"; + $WhereCondition = "WHERE (Level <= $UserLevel OR AssignedToUser='".$LoggedUser['ID']."') AND Status='Unanswered'"; } break; }