diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-06 08:53:52 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-06 08:53:52 +0000 |
commit | 235621a072caff6e05ccf36e4990e084009f7c49 (patch) | |
tree | e6a4bf3c7de343c87c21d3d1faa172be1227344c | |
parent | 856ae39d357232d1c44b64123009858b7305aec9 (diff) | |
download | brdo-235621a072caff6e05ccf36e4990e084009f7c49.tar.gz brdo-235621a072caff6e05ccf36e4990e084009f7c49.tar.bz2 |
#185209 by ChrisKennedy: only provide picture deletion option if there is an actual user picture present
-rw-r--r-- | modules/user/user.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 69c4b77a8..d34259531 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1349,7 +1349,7 @@ function user_edit_form(&$form_state, $uid, $edit, $register = FALSE) { if (variable_get('user_pictures', 0) && !$register) { $form['picture'] = array('#type' => 'fieldset', '#title' => t('Picture'), '#weight' => 1); $picture = theme('user_picture', (object)$edit); - if ($picture) { + if ($edit['picture']) { $form['picture']['current_picture'] = array('#value' => $picture); $form['picture']['picture_delete'] = array('#type' => 'checkbox', '#title' => t('Delete picture'), '#description' => t('Check this box to delete your current picture.')); } |