Index: audio.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/audio/audio.module,v
retrieving revision 1.156
diff -u -F^function -r1.156 audio.module
--- audio.module 31 Jul 2009 23:20:53 -0000 1.156
+++ audio.module 17 Oct 2009 04:03:07 -0000
@@ -734,7 +734,7 @@ function audio_form(&$node, &$form_state
$form['audio']['downloadable'] = array(
'#type' => 'checkbox',
'#title' => t('Allow file downloads.'),
- '#default_value' => !empty($node->audio['downloadable']) ? $node->audio['downloadable'] : variable_get('audio_default_downloadable', 1),
+ '#default_value' => isset($node->audio['downloadable']) ? $node->audio['downloadable'] : variable_get('audio_default_downloadable', 1),
'#description' => t('If checked, a link will be displayed allowing visitors to download this audio file on to their own computer.') .'
'
. t('WARNING: even if you leave this unchecked, clever users will be able to find a way to download the file. This just makes them work a little harder to find the link.'),
);