From b80df87c8295c09dd976256b36f5ab10c11f1740 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Tue, 24 Sep 2019 16:37:35 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#939 --- wire/core/PageimageVariations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/PageimageVariations.php b/wire/core/PageimageVariations.php index a39efe51..ec3f0c61 100644 --- a/wire/core/PageimageVariations.php +++ b/wire/core/PageimageVariations.php @@ -324,7 +324,7 @@ class PageimageVariations extends Wire implements \IteratorAggregate, \Countable // if suffix or noSuffix option contains space, convert it to suffixes or noSuffixes array option foreach(array('suffix', 'noSuffix') as $key) { if(!isset($options[$key])) continue; - if(strpos(trim($options['suffix']), ' ') === false) continue; + if(strpos(trim($options[$key]), ' ') === false) continue; $keyPlural = $key . 'es'; $value = isset($options[$keyPlural]) ? $options[$keyPlural] : array(); $options[$keyPlural] = array_merge($value, explode(' ', trim($options[$key])));