Erreur de booléen

This commit is contained in:
Fred Tempez 2023-06-30 09:09:39 +02:00
parent 08e8c3fa2c
commit ebf143002c
13 changed files with 41 additions and 41 deletions

View File

@ -241,7 +241,7 @@ class config extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Creation du ZIP
@ -334,7 +334,7 @@ class config extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
@ -434,7 +434,7 @@ class config extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
@ -610,7 +610,7 @@ class config extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Ecrire les fichiers de script

View File

@ -53,7 +53,7 @@ class install extends common
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {

View File

@ -545,7 +545,7 @@ class page extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
$css = $this->getInput('pageCssEditorContent', helper::FILTER_STRING_LONG) === null ? '' : $this->getInput('pageCssEditorContent', helper::FILTER_STRING_LONG);
@ -579,7 +579,7 @@ class page extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
$js = $this->getInput('pageJsEditorContent', helper::FILTER_STRING_LONG) === null ? '' : $this->getInput('pageJsEditorContent', helper::FILTER_STRING_LONG);

View File

@ -267,7 +267,7 @@ class plugin extends common
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Installation d'un module
@ -763,7 +763,7 @@ class plugin extends common
{
// Soumission du formulaire d'importation du module dans une page libre
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Récupérer le fichier et le décompacter

View File

@ -250,7 +250,7 @@ class theme extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
$this->setData([
@ -299,7 +299,7 @@ class theme extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Enregistre le CSS
@ -328,7 +328,7 @@ class theme extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
$this->setData([
@ -369,7 +369,7 @@ class theme extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
if (
@ -462,7 +462,7 @@ class theme extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Modification des URL des images dans la bannière perso
@ -566,7 +566,7 @@ class theme extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
$this->setData([
@ -694,7 +694,7 @@ class theme extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Type d'import en ligne ou local
@ -764,7 +764,7 @@ class theme extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Type d'import en ligne ou local
@ -905,7 +905,7 @@ class theme extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
$this->setData([
@ -982,7 +982,7 @@ class theme extends common
public function manage()
{
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {

View File

@ -116,7 +116,7 @@ class translate extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Initialisation
@ -315,7 +315,7 @@ class translate extends common
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
@ -372,7 +372,7 @@ class translate extends common
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
@ -478,7 +478,7 @@ class translate extends common
}
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {

View File

@ -76,7 +76,7 @@ class user extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
$check = true;
@ -391,7 +391,7 @@ class user extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
$userId = $this->getInput('userForgotId', helper::FILTER_ID, true);
@ -541,7 +541,7 @@ class user extends common
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
$this->setData([
@ -671,7 +671,7 @@ class user extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Nombre de profils de ce groupe
@ -1058,7 +1058,7 @@ class user extends common
$notification = '';
$success = true;
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Lecture du CSV et construction du tableau

View File

@ -251,7 +251,7 @@ class blog extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Modification de l'userId
@ -560,7 +560,7 @@ class blog extends common
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
$this->setData([

View File

@ -118,7 +118,7 @@ class form extends common
}
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Génération des données vides
@ -167,7 +167,7 @@ class form extends common
}
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Débordement
@ -393,7 +393,7 @@ class form extends common
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Check la captcha

View File

@ -418,7 +418,7 @@ class gallery extends common
{
// Soumission du formulaire d'ajout d'une galerie
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
$galleryId = $this->getInput('galleryAddName', null, true);
@ -542,7 +542,7 @@ class gallery extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
@ -847,7 +847,7 @@ class gallery extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Dossier de l'instance

View File

@ -164,7 +164,7 @@ class news extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
// Crée la news
@ -266,7 +266,7 @@ class news extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {

View File

@ -33,7 +33,7 @@ class redirection extends common
{
// Soumission du formulaire
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
$this->setData(['module', $this->getUrl(0), 'url', $this->getInput('redirectionConfigUrl', helper::FILTER_URL, true)]);

View File

@ -121,7 +121,7 @@ class search extends common
$this->update();
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
@ -177,7 +177,7 @@ class search extends common
$this->update();
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true &&
$this->getUser('permission', __CLASS__, __FUNCTION__) === true &&
$this->isPost()
) {
//Initialisations variables