From 896e23d76bee6d43c930c29ac570aa01dad5ad3e Mon Sep 17 00:00:00 2001
From: Matthieu Marcillaud <marcimat@rezo.net>
Date: Tue, 14 Mar 2023 20:30:48 +0100
Subject: [PATCH] chore: Rector up to PHP 8.0 sur ecrire/notifications

---
 ecrire/notifications/instituerarticle.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ecrire/notifications/instituerarticle.php b/ecrire/notifications/instituerarticle.php
index a207e6ec0f..17b7ae6325 100644
--- a/ecrire/notifications/instituerarticle.php
+++ b/ecrire/notifications/instituerarticle.php
@@ -29,7 +29,7 @@ function notifications_instituerarticle_dist($quoi, $id_article, $options) {
 	if ($options['statut'] == 'publie') {
 		if (
 			$GLOBALS['meta']['post_dates'] == 'non'
-			and strtotime($options['date']) > time()
+			&& strtotime($options['date']) > time()
 		) {
 			$modele = 'notifications/article_valide';
 		} else {
@@ -37,7 +37,7 @@ function notifications_instituerarticle_dist($quoi, $id_article, $options) {
 		}
 	}
 
-	if ($options['statut'] == 'prop' and $options['statut_ancien'] != 'publie') {
+	if ($options['statut'] == 'prop' && $options['statut_ancien'] != 'publie') {
 		$modele = 'notifications/article_propose';
 	}
 
-- 
GitLab