mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
Empty commit
This commit is contained in:
parent
48c9f14104
commit
3edfb6e111
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user