Explorar o código

make the default of identity editing backwards compatible

teepe %!s(int64=23) %!d(string=hai) anos
pai
achega
b7e9035946
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/options_personal.php

+ 4 - 0
src/options_personal.php

@@ -46,6 +46,10 @@ function load_optpage_data_personal() {
     /* Build a simple array into which we will build options. */
     /* Build a simple array into which we will build options. */
     $optvals = array();
     $optvals = array();
 
 
+    if (!isset($edit_identity)) {
+        $edit_identity = TRUE;
+    }
+
     if ($edit_identity || $edit_name) {
     if ($edit_identity || $edit_name) {
         $optvals[SMOPT_GRP_CONTACT][] = array(
         $optvals[SMOPT_GRP_CONTACT][] = array(
             'name'    => 'full_name',
             'name'    => 'full_name',