aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/edit.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/edit.php b/actions/edit.php
index 359e83fb0..f5c66a1d8 100644
--- a/actions/edit.php
+++ b/actions/edit.php
@@ -15,6 +15,8 @@
$access = get_input('access_id');
$tags = get_input('tidypicstags');
$subtype = get_input('subtype');
+ $cover = get_input('cover');
+ if (is_array($cover)) $cover = $cover[0];
$container_guid = get_input('container_guid');
@@ -59,7 +61,7 @@
}
//if cover meta is sent from image save as metadata
- if ($subtype == 'image' && get_input('cover') == elgg_echo('album:cover:yes')) {
+ if ($subtype == 'image' && $cover == elgg_echo('album:cover')) {
$album = get_entity($container_guid);
$album->cover = $entity->guid;
}