Use `->prepare()` in EnforceAcpAuthentication::logRequest()
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 9 Mar 2023 14:50:01 +0000 (15:50 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 9 Mar 2023 14:50:01 +0000 (15:50 +0100)
wcfsetup/install/files/lib/http/middleware/EnforceAcpAuthentication.class.php

index d9cd92c1dfe33a6b383f1dc94440d403c5524852..1c9d4382adde6ce86fc184dba0e661ae03233374 100644 (file)
@@ -151,10 +151,10 @@ final class EnforceAcpAuthentication implements MiddlewareInterface
     {
         // try to find existing session log
         $sql = "SELECT  sessionLogID
-                FROM    wcf" . WCF_N . "_acp_session_log
+                FROM    wcf1_acp_session_log
                 WHERE   sessionID = ?
-                AND     lastActivityTime > ?";
-        $statement = WCF::getDB()->prepareStatement($sql);
+                    AND lastActivityTime > ?";
+        $statement = WCF::getDB()->prepare($sql);
         $statement->execute([
             WCF::getSession()->sessionID,
             (TIME_NOW - 15 * 60),