mirror of
https://github.com/wiosna-dev/limesurvey-api-client.git
synced 2026-03-12 02:11:45 +01:00
Item of result - setting values - make stronger comparison for boolean values
This commit is contained in:
@@ -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':
|
||||
|
||||
@@ -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':
|
||||
|
||||
@@ -86,7 +86,7 @@ class Survey extends BaseItem
|
||||
break;
|
||||
|
||||
case 'active':
|
||||
$this->active = 'Y' === trim($value);
|
||||
$this->active = 'Y' === trim(strtoupper($value));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user