bugfix: unable to reset profile fields to defaults in admin/profs by emptying the textarea

This commit is contained in:
zotlabs
2018-03-04 15:29:10 -08:00
parent 14f701f7fc
commit be6619d9c0
2 changed files with 31 additions and 9 deletions

View File

@@ -1897,6 +1897,7 @@ function is_public_profile() {
function get_profile_fields_basic($filter = 0) {
$profile_fields_basic = (($filter == 0) ? get_config('system','profile_fields_basic') : null);
if(! $profile_fields_basic)
$profile_fields_basic = array('fullname','pdesc','chandesc','comms','gender','dob','dob_tz','region','country_name','marital','sexual','homepage','hometown','keywords','about','contact');