Completed
Push — master ( 50d6bd...e522b2 )
by cam
04:46
created
prive/informer_auteur_fonctions.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 \***************************************************************************/
12 12
 
13 13
 if (!defined('_ECRIRE_INC_VERSION')) {
14
-	return;
14
+    return;
15 15
 }
16 16
 
17 17
 
@@ -34,15 +34,15 @@  discard block
 block discarded – undo
34 34
  *     JSON des différentes informations
35 35
  */
36 36
 function informer_auteur($bof) {
37
-	include_spip('inc/json');
38
-	include_spip('formulaires/login');
39
-	include_spip('inc/auth');
40
-	$login = strval(_request('var_login'));
41
-	$row = auth_informer_login($login);
42
-	if ($row and is_array($row) and isset($row['id_auteur'])) {
43
-		unset($row['id_auteur']);
44
-	}
37
+    include_spip('inc/json');
38
+    include_spip('formulaires/login');
39
+    include_spip('inc/auth');
40
+    $login = strval(_request('var_login'));
41
+    $row = auth_informer_login($login);
42
+    if ($row and is_array($row) and isset($row['id_auteur'])) {
43
+        unset($row['id_auteur']);
44
+    }
45 45
 
46
-	// on encode tout pour ne pas avoir de probleme au deballage dans le JS
47
-	return json_encode($row, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP);
46
+    // on encode tout pour ne pas avoir de probleme au deballage dans le JS
47
+    return json_encode($row, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP);
48 48
 }
Please login to merge, or discard this patch.