aboutsummaryrefslogtreecommitdiff
path: root/actions/edit.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-06-20 15:09:01 +0000
committerCash Costello <cash.costello@gmail.com>2009-06-20 15:09:01 +0000
commitc118d77f0625fa70fe3cdadb23bcbeea96a0768c (patch)
tree071146efd0f25b279db6e2d89ad660809301f074 /actions/edit.php
parent11b231e85f8f0d3a384c01bbbbbb097e03c10ee4 (diff)
downloadelgg-c118d77f0625fa70fe3cdadb23bcbeea96a0768c.tar.gz
elgg-c118d77f0625fa70fe3cdadb23bcbeea96a0768c.tar.bz2
using built-in elgg checkbox view rather than custom
Diffstat (limited to 'actions/edit.php')
-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;
}