Completed
Branch develop (8e334c)
by
unknown
24:24
created
htdocs/adherents/card.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 $action = GETPOST('action', 'aZ09');
67 67
 $cancel = GETPOST('cancel', 'alpha');
68 68
 $backtopage = GETPOST('backtopage', 'alpha');
69
-$backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');	// if not set, $backtopage will be used
69
+$backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); // if not set, $backtopage will be used
70 70
 $confirm = GETPOST('confirm', 'alpha');
71 71
 $rowid = GETPOSTINT('rowid');
72 72
 $id = GETPOST('id') ? GETPOSTINT('id') : $rowid;
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 		}
311 311
 		// Create new object
312 312
 		if ($result > 0 && !$error) {
313
-			$object->oldcopy = dol_clone($object, 2);  // @phan-suppress-current-line PhanTypeMismatchProperty
313
+			$object->oldcopy = dol_clone($object, 2); // @phan-suppress-current-line PhanTypeMismatchProperty
314 314
 
315 315
 			// Change values
316 316
 			$object->civility_id = trim(GETPOST("civility_id", 'alphanohtml'));
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 			$object->gender      = trim(GETPOST("gender", 'alphanohtml'));
320 320
 			$object->login       = trim(GETPOST("login", 'alphanohtml'));
321 321
 			if (GETPOSTISSET('pass')) {
322
-				$object->pass        = trim(GETPOST("pass", 'password'));	// For password, we must use 'none'
322
+				$object->pass = trim(GETPOST("pass", 'password')); // For password, we must use 'none'
323 323
 			}
324 324
 
325 325
 			$object->societe     = trim(GETPOST("societe", 'alphanohtml')); // deprecated
@@ -374,10 +374,10 @@  discard block
 block discarded – undo
374 374
 			}
375 375
 
376 376
 			// Check if we need to also synchronize password information
377
-			$nosyncuserpass = 1;	// no by default
377
+			$nosyncuserpass = 1; // no by default
378 378
 			if (GETPOSTISSET('pass')) {
379 379
 				if ($object->user_id) {	// If member is linked to a user
380
-					$nosyncuserpass = 0;	// We may try to sync password
380
+					$nosyncuserpass = 0; // We may try to sync password
381 381
 					if ($user->id == $object->user_id) {
382 382
 						if (!$user->hasRight('user', 'self', 'password')) {
383 383
 							$nosyncuserpass = 1; // Disable synchronizing
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
 		$email = preg_replace('/\s+/', '', GETPOST("member_email", 'aZ09arobase'));
488 488
 		$url = trim(GETPOST('url', 'custom', 0, FILTER_SANITIZE_URL));
489 489
 		$login = GETPOST("member_login", 'alphanohtml');
490
-		$pass = GETPOST("password", 'password');	// For password, we use 'none'
490
+		$pass = GETPOST("password", 'password'); // For password, we use 'none'
491 491
 		$photo = GETPOST("photo", 'alphanohtml');
492 492
 		$morphy = GETPOST("morphy", 'alphanohtml');
493 493
 		$public = GETPOSTINT("public");
@@ -867,7 +867,7 @@  discard block
 block discarded – undo
867 867
 	}
868 868
 
869 869
 	if ($action == 'update_extras' && $permissiontoeditextra) {
870
-		$object->oldcopy = dol_clone($object, 2);  // @phan-suppress-current-line PhanTypeMismatchProperty
870
+		$object->oldcopy = dol_clone($object, 2); // @phan-suppress-current-line PhanTypeMismatchProperty
871 871
 		$attribute_name = GETPOST('attribute', 'aZ09');
872 872
 
873 873
 		// Fill array 'array_options' with data from update form
@@ -1367,7 +1367,7 @@  discard block
 block discarded – undo
1367 1367
 			$maxfilesizearray = getMaxFileSizeArray();
1368 1368
 			$maxmin = $maxfilesizearray['maxmin'];
1369 1369
 			if ($maxmin > 0) {
1370
-				print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">';	// MAX_FILE_SIZE must precede the field type=file
1370
+				print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file
1371 1371
 			}
1372 1372
 			print '<input type="file" class="flat" name="photo" id="photoinput">';
1373 1373
 			print '</td></tr>';
@@ -1616,7 +1616,7 @@  discard block
 block discarded – undo
1616 1616
 
1617 1617
 			if (!empty($labeltouse) && is_object($arraydefaultmessage) && $arraydefaultmessage->id > 0) {
1618 1618
 				$subject = (string) $arraydefaultmessage->topic;
1619
-				$msg	 = (string) $arraydefaultmessage->content;
1619
+				$msg = (string) $arraydefaultmessage->content;
1620 1620
 			}
1621 1621
 
1622 1622
 			$substitutionarray = getCommonSubstitutionArray($outputlangs, 0, null, $object);
Please login to merge, or discard this patch.