From c001770ab12771f085038ed9ca841e3d546bba22 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 23 Apr 2023 15:08:44 +0200 Subject: [PATCH] use Database Cursor --- src/Frontend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Frontend.php b/src/Frontend.php index 3a61cf7..d8676fe 100644 --- a/src/Frontend.php +++ b/src/Frontend.php @@ -15,10 +15,10 @@ declare(strict_types=1); namespace Dotclear\Plugin\emailOptionnel; use ArrayObject; -use cursor; use dcCore; use dcNsProcess; use dcUtils; +use Dotclear\Database\Cursor; class Frontend extends dcNsProcess { @@ -51,7 +51,7 @@ class Frontend extends dcNsProcess } $_POST['c_mail'] = My::DEFAULT_EMAIL; }, - 'publicBeforeCommentCreate' => function (cursor $cur): void { + 'publicBeforeCommentCreate' => function (Cursor $cur): void { // nullsafe PHP < 8.0 if (is_null(dcCore::app()->blog) || is_null(dcCore::app()->ctx)) { return;