From 70fc2888b0504ff468708a7950156eec177921b1 Mon Sep 17 00:00:00 2001 From: Astrologies Date: Sat, 18 Dec 2021 03:22:53 -0500 Subject: [PATCH] chatlog hide admins and above --- html/MCP/chat-logs/loggedChats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/MCP/chat-logs/loggedChats.php b/html/MCP/chat-logs/loggedChats.php index a574839..23acc19 100644 --- a/html/MCP/chat-logs/loggedChats.php +++ b/html/MCP/chat-logs/loggedChats.php @@ -38,7 +38,7 @@ if ($page < 1 || $limit < 1) } //$query = "SELECT * FROM chat_logs WHERE whoSent = :who AND trippedFilter = :tf"; -$query = "SELECT * FROM chat_logs WHERE message LIKE :u" . (!empty($userid) && is_int($userid)?" AND whoSent = ".$userid." ":" ") . " AND whoSent > 2 ORDER BY whenSent DESC"; +$query = "SELECT * FROM chat_logs WHERE message LIKE :u" . (!empty($userid) && is_int($userid)?" AND whoSent = ".$userid." ":" ") . " AND whoSent > 4 ORDER BY whenSent DESC"; //count how many games without offset/limit $messagescount = $pdo->prepare($query);