use Database Cursor
This commit is contained in:
parent
07328d6acd
commit
c001770ab1
@ -15,10 +15,10 @@ declare(strict_types=1);
|
|||||||
namespace Dotclear\Plugin\emailOptionnel;
|
namespace Dotclear\Plugin\emailOptionnel;
|
||||||
|
|
||||||
use ArrayObject;
|
use ArrayObject;
|
||||||
use cursor;
|
|
||||||
use dcCore;
|
use dcCore;
|
||||||
use dcNsProcess;
|
use dcNsProcess;
|
||||||
use dcUtils;
|
use dcUtils;
|
||||||
|
use Dotclear\Database\Cursor;
|
||||||
|
|
||||||
class Frontend extends dcNsProcess
|
class Frontend extends dcNsProcess
|
||||||
{
|
{
|
||||||
@ -51,7 +51,7 @@ class Frontend extends dcNsProcess
|
|||||||
}
|
}
|
||||||
$_POST['c_mail'] = My::DEFAULT_EMAIL;
|
$_POST['c_mail'] = My::DEFAULT_EMAIL;
|
||||||
},
|
},
|
||||||
'publicBeforeCommentCreate' => function (cursor $cur): void {
|
'publicBeforeCommentCreate' => function (Cursor $cur): void {
|
||||||
// nullsafe PHP < 8.0
|
// nullsafe PHP < 8.0
|
||||||
if (is_null(dcCore::app()->blog) || is_null(dcCore::app()->ctx)) {
|
if (is_null(dcCore::app()->blog) || is_null(dcCore::app()->ctx)) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user