Changeset 1054 for devel/profile
- Timestamp:
- 04/02/07 12:05:56 (2 years ago)
- Files:
-
- devel/profile/edit.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/profile/edit.php
r1030 r1054 3 3 // ELGG profile edit page 4 4 5 global $profile_name, $profile_id ;5 global $profile_name, $profile_id, $messages; 6 6 7 7 // Run includes … … 81 81 $value = trim($value); 82 82 83 if ( $value != "") {83 if (!empty($value)) { 84 84 //TODO get rid of variable duplication here. (Penny) 85 85 if (!empty($data['profile:details'][$field]->invisible)) { … … 116 116 } 117 117 } 118 if ($fname == $field && $frequired == true) { 119 $requiredmissing[] = sprintf(__gettext("%s (in category %s)"),$flabel,$fcat); 118 if ($fname == $field) { 119 if ($frequired == true) { 120 $requiredmissing[] = sprintf(__gettext("%s (in category %s)"),$flabel,$fcat); 121 } else { 122 delete_records('profile_data','owner',$page_owner,'name',$fname); 123 } 120 124 } 121 125 } 122 delete_records('profile_data','owner',$page_owner,'name',$fname);123 124 126 } 125 127 }
