From c118d77f0625fa70fe3cdadb23bcbeea96a0768c Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 20 Jun 2009 15:09:01 +0000 Subject: using built-in elgg checkbox view rather than custom --- actions/edit.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'actions/edit.php') 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; } -- cgit v1.2.3