From ed624c324835859b68521099de13c01c6928703f Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Fri, 17 Apr 2020 22:42:29 +0300 Subject: [PATCH] Fix param name --- src/Audit/Adapters/MySQL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Audit/Adapters/MySQL.php b/src/Audit/Adapters/MySQL.php index 65ba038..d05f0ca 100644 --- a/src/Audit/Adapters/MySQL.php +++ b/src/Audit/Adapters/MySQL.php @@ -81,7 +81,7 @@ public function getLogsByResource(string $resource): array ORDER BY `time` DESC LIMIT 10 '); - $st->bindValue(':resourceId', $resource, PDO::PARAM_STR); + $st->bindValue(':resource', $resource, PDO::PARAM_STR); $st->execute();