Item of result - setting values - make stronger comparison for boolean values

This commit is contained in:
Meritoo
2017-09-29 13:17:40 +02:00
parent 4f26bca282
commit 6c44a62f36
3 changed files with 7 additions and 7 deletions

View File

@@ -183,15 +183,15 @@ class Participant extends BaseItem
break;
case 'blacklisted':
$this->blacklisted = 'Y' === trim($value);
$this->blacklisted = 'Y' === trim(strtoupper($value));
break;
case 'sent':
$this->sent = 'Y' === trim($value);
$this->sent = 'Y' === trim(strtoupper($value));
break;
case 'remindersent':
$this->reminderSent = 'Y' === trim($value);
$this->reminderSent = 'Y' === trim(strtoupper($value));
break;
case 'remindercount':
@@ -199,7 +199,7 @@ class Participant extends BaseItem
break;
case 'completed':
$this->completed = 'Y' === trim($value);
$this->completed = 'Y' === trim(strtoupper($value));
break;
case 'usesleft':

View File

@@ -193,11 +193,11 @@ class QuestionShort extends BaseItem
break;
case 'other':
$this->other = 'Y' === trim($value);
$this->other = 'Y' === trim(strtoupper($value));
break;
case 'mandatory':
$this->mandatory = 'Y' === trim($value);
$this->mandatory = 'Y' === trim(strtoupper($value));
break;
case 'question_order':

View File

@@ -86,7 +86,7 @@ class Survey extends BaseItem
break;
case 'active':
$this->active = 'Y' === trim($value);
$this->active = 'Y' === trim(strtoupper($value));
break;
}
}