Erreur de booléen

This commit is contained in:
Fred Tempez 2023-06-30 09:15:15 +02:00
parent ebf143002c
commit ac0a51a8b5
5 changed files with 11 additions and 8 deletions

View File

@ -297,7 +297,7 @@ class page extends common
else {
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Si le Title n'est pas vide, premier test pour positionner la notification du champ obligatoire

View File

@ -263,7 +263,7 @@ class user extends common
else {
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Double vérification pour le mot de passe
@ -1012,7 +1012,7 @@ class user extends common
else {
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Double vérification pour le mot de passe

View File

@ -642,7 +642,7 @@ class blog extends common
else {
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
if ($this->getUser('group') === self::GROUP_ADMIN) {
@ -740,7 +740,7 @@ class blog extends common
else {
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Check la captcha

View File

@ -923,7 +923,7 @@ class gallery extends common
if ($this->getUrl(2) === 'galleries') {
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
@ -967,7 +967,7 @@ class gallery extends common
}
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {

View File

@ -410,7 +410,10 @@ class news extends common
// La news existe
else {
// Soumission du formulaire
if ($this->getUser('permission', __CLASS__, __FUNCTION__) !== true && $this->isPost()) {
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Si l'id a changée
$newsId = $this->getInput('newsEditTitle', helper::FILTER_ID, true);
if ($newsId !== $this->getUrl(2)) {