diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/elgglib.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 02c94b8b4..d1e8b9a31 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -2074,7 +2074,12 @@ function elgg_normalise_plural_options_array($options, $singulars) { if ($options[$singular] === ELGG_ENTITIES_ANY_VALUE) { $options[$plural] = $options[$singular]; } else { - $options[$plural] = array($options[$singular]); + // Test for array refs #2641 + if (!is_array($options[$singular])) { + $options[$plural] = array($options[$singular]); + } else { + $options[$plural] = $options[$singular]; + } } } |