Referring to wrong key in image_effect_save() was causing errors

8.0.x
Greg Dunlap 2012-01-06 18:06:51 +01:00
parent a644a0ae58
commit 5ed90e0fcd
1 changed files with 1 additions and 1 deletions

View File

@ -1002,7 +1002,7 @@ function image_effect_load($name, $style_name) {
* An image effect array. In the case of a new effect, 'ieid' will be set. * An image effect array. In the case of a new effect, 'ieid' will be set.
*/ */
function image_effect_save($effect) { function image_effect_save($effect) {
$config = config('image.styles.' . $effect['style_name']); $config = config('image.styles.' . $effect['name']);
if (!empty($effect['ieid'])) { if (!empty($effect['ieid'])) {
$old_effect = $config->get('effects.' . $effect['ieid']); $old_effect = $config->get('effects.' . $effect['ieid']);
foreach ($old_effect as $key => $value) { foreach ($old_effect as $key => $value) {