Skip to content

Commit 8aaf17d

Browse files
authored
Merge pull request #107 from catalyst/issue106
issue #106: fix PHP deprecated warning
2 parents 8b02eeb + ce44748 commit 8aaf17d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/local/tool_dynamic_cohorts/condition/user_custom_profile.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function get_fields_info(): array {
8585
switch ($field->datatype) {
8686
case self::FIELD_DATA_TYPE_MENU:
8787
case self::FIELD_DATA_TYPE_AUTOCOMPLETE:
88-
$options = explode("\n", $field->param1);
88+
$options = explode("\n", (string) $field->param1);
8989
$field->param1 = array_combine($options, $options);
9090
break;
9191
case self::FIELD_DATA_TYPE_TEXT:

0 commit comments

Comments
 (0)