true/false

This commit is contained in:
Daniel Muñoz Garcia 2021-06-08 18:56:31 +02:00 committed by GitHub
parent 9db0c0ce6f
commit 9ce0a4045f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -70,10 +70,10 @@ class formAddPromotion extends Form{
//|| !mb_ereg_match(self::HTML5_EMAIL_REGEXP, $description)
if ( strcmp($active,"si") == 0 || strcmp($active,"no") == 0) {
if ( strcmp($active,"si") == 0 ) {
$boolean = 0;
$boolean = 1;
}
else {
$boolean = 1;
$boolean = 0;
}
}
else {

View File

@ -80,10 +80,10 @@ class formEditPromotion extends Form{
//|| !mb_ereg_match(self::HTML5_EMAIL_REGEXP, $description)
if ( strcmp($active,"si") == 0 || strcmp($active,"no") == 0) {
if ( strcmp($active,"si") == 0 ) {
$boolean = 0;
$boolean = 1;
}
else {
$boolean = 1;
$boolean = 0;
}
}
else {