Completed
Push — master ( 3fe97a...7569f9 )
by cam
02:24
created
ecrire/balise/formulaire_inscription.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 	if (!is_array($id_ou_options)) {
80 80
 		$options = ['id' => (int) $id_ou_options];
81 81
 		$id = $options['id'];
82
-	}else {
82
+	} else {
83 83
 		$options = $id_ou_options;
84 84
 		$id = (int) ($id_ou_options['id'] ?? 0);
85 85
 	}
Please login to merge, or discard this patch.
ecrire/xml/sax.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
 	$t = $phraseur->ouvrant[$depth] ?? ' ';
41 41
 	// espace initial signifie: deja integree au resultat
42 42
 	if ($t[0] != ' ') {
43
-		$phraseur->res .= '<' . $t . '>';
44
-		$phraseur->ouvrant[$depth] = ' ' . $t;
43
+		$phraseur->res .= '<'.$t.'>';
44
+		$phraseur->ouvrant[$depth] = ' '.$t;
45 45
 	}
46 46
 	$t = $phraseur->contenu[$depth];
47 47
 	// n'indenter que s'il y a un separateur avant
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
52 52
 	foreach ($attrs as $k => $v) {
53 53
 		$delim = str_contains($v, "'") ? '"' : "'";
54 54
 		$val = xml_entites_html($v);
55
-		$att .= $sep . $k . '=' . $delim
55
+		$att .= $sep.$k.'='.$delim
56 56
 			. ($delim !== '"' ? str_replace('&quot;', '"', $val) : $val)
57 57
 			. $delim;
58 58
 		$sep = "\n $depth";
59 59
 	}
60 60
 	$phraseur->depth .= '  ';
61 61
 	$phraseur->contenu[$phraseur->depth] = '';
62
-	$phraseur->ouvrant[$phraseur->depth] = $name . $att;
62
+	$phraseur->ouvrant[$phraseur->depth] = $name.$att;
63 63
 	$phraseur->reperes[$phraseur->depth] = xml_get_current_line_number($phraseur->sax);
64 64
 }
65 65
 
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
 	$ouv = $phraseur->ouvrant[$phraseur->depth];
68 68
 
69 69
 	if ($ouv[0] != ' ') {
70
-		$phraseur->ouvrant[$phraseur->depth] = ' ' . $ouv;
70
+		$phraseur->ouvrant[$phraseur->depth] = ' '.$ouv;
71 71
 	} else {
72 72
 		$ouv = '';
73 73
 	}
74 74
 	$t = $phraseur->contenu[$phraseur->depth];
75 75
 	$phraseur->depth = substr($phraseur->depth, 2);
76
-	$t = preg_replace("/[\n\t ]+$/", "\n" . $phraseur->depth, $t);
76
+	$t = preg_replace("/[\n\t ]+$/", "\n".$phraseur->depth, $t);
77 77
 
78 78
 	// fusion <balise></balise> en <balise />.
79 79
 	// ATTENTION,  certains clients http croient que fusion ==> pas d'atttributs
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
 	// (param fusion_bal)
83 83
 
84 84
 	if ($t || ($ouv != $name && !$fusion_bal)) {
85
-		$phraseur->res .= ($ouv ? ('<' . $ouv . '>') : '') . $t . '</' . $name . '>';
85
+		$phraseur->res .= ($ouv ? ('<'.$ouv.'>') : '').$t.'</'.$name.'>';
86 86
 	} else {
87
-		$phraseur->res .= ($ouv ? ('<' . $ouv . ' />') : ('</' . $name . '>'));
87
+		$phraseur->res .= ($ouv ? ('<'.$ouv.' />') : ('</'.$name.'>'));
88 88
 	}
89 89
 }
90 90
 
@@ -126,16 +126,16 @@  discard block
 block discarded – undo
126 126
 		coordonnees_erreur(
127 127
 			$phraseur,
128 128
 			xml_error_string(xml_get_error_code($phraseur->sax))
129
-			. "<br />\n" .
129
+			. "<br />\n".
130 130
 			($phraseur->depth
131
-				? '(' .
132
-					_T('erreur_balise_non_fermee') .
133
-					' <tt>' .
134
-					$phraseur->ouvrant[$phraseur->depth] .
135
-					'</tt> ' .
136
-					_T('ligne') .
137
-					' ' .
138
-					$phraseur->reperes[$phraseur->depth] .
131
+				? '('.
132
+					_T('erreur_balise_non_fermee').
133
+					' <tt>'.
134
+					$phraseur->ouvrant[$phraseur->depth].
135
+					'</tt> '.
136
+					_T('ligne').
137
+					' '.
138
+					$phraseur->reperes[$phraseur->depth].
139 139
 					") <br />\n"
140 140
 				: '')
141 141
 		);
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 	// et escamoter le doctype que sax mange en php5 mais pas en  php4
174 174
 	if (!$doctype) {
175 175
 		if (!$r = analyser_doctype($page)) {
176
-			$page = _MESSAGE_DOCTYPE . _DOCTYPE_ECRIRE
176
+			$page = _MESSAGE_DOCTYPE._DOCTYPE_ECRIRE
177 177
 				. preg_replace(_REGEXP_DOCTYPE, '', $page);
178 178
 			$r = analyser_doctype($page);
179 179
 		}
@@ -280,18 +280,18 @@  discard block
 block discarded – undo
280 280
 					'rss-0.91.dtd'
281 281
 				];
282 282
 			} else {
283
-				$dtd = $topelement . '.dtd';
283
+				$dtd = $topelement.'.dtd';
284 284
 				$f = find_in_path($dtd);
285 285
 				if (file_exists($f)) {
286 286
 					return [$entete, 'SYSTEM', $f, $dtd];
287 287
 				}
288 288
 			}
289 289
 		}
290
-		spip_log('Dtd pas vu pour ' . substr($data, 0, 100));
290
+		spip_log('Dtd pas vu pour '.substr($data, 0, 100));
291 291
 
292 292
 		return [];
293 293
 	}
294
-	[$entete, , $topelement, $avail, $suite] = $page;
294
+	[$entete,, $topelement, $avail, $suite] = $page;
295 295
 
296 296
 	if (!preg_match('/^"([^"]*)"\s*(.*)$/', $suite, $r) && !preg_match("/^'([^']*)'\s*(.*)$/", $suite, $r)) {
297 297
 		return [];
Please login to merge, or discard this patch.
ecrire/req/sqlite_fonctions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
  */
334 334
 function _sqlite_func_preg_replace($quoi, $cherche, $remplace) {
335 335
 	#spip_log("preg_replace : $quoi, $cherche, $remplace, $return",'sqlite.'._LOG_DEBUG);
336
-	return preg_replace('%' . $cherche . '%', $remplace, $quoi);
336
+	return preg_replace('%'.$cherche.'%', $remplace, $quoi);
337 337
 }
338 338
 
339 339
 /**
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 	$u = $GLOBALS['meta']['pcre_u'] ?? 'u';
396 396
 
397 397
 	#spip_log("regexp_replace : $quoi, $cherche, $remplace, $return",'sqlite.'._LOG_DEBUG);
398
-	return preg_match('%' . $cherche . '%imsS' . $u, $quoi);
398
+	return preg_match('%'.$cherche.'%imsS'.$u, $quoi);
399 399
 }
400 400
 
401 401
 
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
 		$count = 0;
445 445
 		str_replace($mysql_to_strftime_not_ok, '', $conv, $count);
446 446
 		if ($count > 0) {
447
-			spip_log("DATE_FORMAT : At least one parameter can't be parsed by strftime with format '$conv'", 'sqlite.' . _LOG_ERREUR);
447
+			spip_log("DATE_FORMAT : At least one parameter can't be parsed by strftime with format '$conv'", 'sqlite.'._LOG_ERREUR);
448 448
 		}
449 449
 		$to_strftime[$conv] = str_replace(array_keys($mysql_to_strftime), $mysql_to_strftime, $conv);
450 450
 	}
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
  */
464 464
 function _sqlite_func_to_days($d) {
465 465
 	static $offset = 719528; // nb de jour entre 0000-00-00 et timestamp 0=1970-01-01
466
-	$result = $offset + (int)ceil(_sqlite_func_unix_timestamp($d) / (24 * 3600));
466
+	$result = $offset + (int) ceil(_sqlite_func_unix_timestamp($d) / (24 * 3600));
467 467
 
468 468
 	#spip_log("Passage avec TO_DAYS : $d, $result",'sqlite.'._LOG_DEBUG);
469 469
 	return $result;
Please login to merge, or discard this patch.
ecrire/inc/filtres_selecteur_generique.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 		$type = reset($objets);
160 160
 		$type = objet_type($type);
161 161
 		$id = (int) $ref;
162
-		$ref = $type . $ref;
162
+		$ref = $type.$ref;
163 163
 	}
164 164
 	else {
165 165
 		// Si la référence ne correspond à rien, c'est fini
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 			return json_export(false);
168 168
 		}
169 169
 		// Sinon on récupère les infos utiles
170
-		[$type, , $id, , , , ] = array_pad($match, 7, null);
170
+		[$type,, $id,,,,] = array_pad($match, 7, null);
171 171
 
172 172
 		// On regarde si le type trouvé fait partie des objets sélectionnables
173 173
 		if (!in_array(table_objet($type), $objets)) {
@@ -213,8 +213,8 @@  discard block
 block discarded – undo
213 213
 		$types = (is_array($types) ? array_filter($types) : []);
214 214
 
215 215
 		// recuperer tous les freres et soeurs de la rubrique visee
216
-		$id_parent = sql_getfetsel('id_parent', 'spip_rubriques', 'id_rubrique=' . (int) $id_rubrique);
217
-		$fratrie = sql_allfetsel('id_rubrique', 'spip_rubriques', 'id_parent=' . (int) $id_parent);
216
+		$id_parent = sql_getfetsel('id_parent', 'spip_rubriques', 'id_rubrique='.(int) $id_rubrique);
217
+		$fratrie = sql_allfetsel('id_rubrique', 'spip_rubriques', 'id_parent='.(int) $id_parent);
218 218
 		$fratrie = array_column($fratrie, 'id_rubrique');
219 219
 		$has = sql_allfetsel('DISTINCT id_parent', 'spip_rubriques', sql_in('id_parent', $fratrie));
220 220
 		$has = array_column($has, 'id_parent');
Please login to merge, or discard this patch.
ecrire/inc/roles.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 			$role = $roles['roles']['defaut'];
147 147
 		}
148 148
 		// where
149
-		$cond = ["$colonne_role=" . sql_quote($role)];
149
+		$cond = ["$colonne_role=".sql_quote($role)];
150 150
 	}
151 151
 
152 152
 	return [$role, $colonne_role, $cond];
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 	unset($cond['role']); // cette condition est particuliere...
180 180
 	// on ajoute la condition du role aux autres conditions.
181 181
 	if ($colonne_role && $role != '*') {
182
-		$cond[] = "$colonne_role=" . sql_quote($role);
182
+		$cond[] = "$colonne_role=".sql_quote($role);
183 183
 	}
184 184
 
185 185
 	return [$cond, $colonne_role, $role];
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
 	$all = sql_allfetsel(
363 363
 		"DISTINCT $colone_role",
364 364
 		$l,
365
-		'objet=' . sql_quote(($objet_source == $objet_lien) ? $objet : $objet_source)
365
+		'objet='.sql_quote(($objet_source == $objet_lien) ? $objet : $objet_source)
366 366
 	);
367 367
 	$done[$hash] = array_map('reset', $all);
368 368
 
Please login to merge, or discard this patch.
ecrire/inc/filtres_mime.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 	static $t1 = ['&', '<', '>'];
120 120
 	static $t2 = ['&amp;', '&lt;', '&gt;'];
121 121
 
122
-	return '<pre>' . str_replace($t1, $t2, (string) $t) . '</pre>';
122
+	return '<pre>'.str_replace($t1, $t2, (string) $t).'</pre>';
123 123
 }
124 124
 
125 125
 /**
@@ -139,12 +139,12 @@  discard block
 block discarded – undo
139 139
 	foreach ($lignes as &$l) {
140 140
 		$l = implode('|', $l);
141 141
 	}
142
-	$corps = implode("\n", $lignes) . "\n";
143
-	$corps = $caption .
144
-		"\n|{{" .
145
-		implode('}}|{{', $entete) .
146
-		'}}|' .
147
-		"\n|" .
142
+	$corps = implode("\n", $lignes)."\n";
143
+	$corps = $caption.
144
+		"\n|{{".
145
+		implode('}}|{{', $entete).
146
+		'}}|'.
147
+		"\n|".
148 148
 		str_replace("\n", "|\n|", $corps);
149 149
 	include_spip('inc/texte');
150 150
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 	// Pourquoi SafeHtml transforme-t-il en texte les scripts dans Body ?
189 189
 	$t = safehtml(preg_replace(',<script.*?</script>,is', '', $t));
190 190
 
191
-	return ($style ? "\n<style>" . $style . '</style>' : '') . $t;
191
+	return ($style ? "\n<style>".$style.'</style>' : '').$t;
192 192
 }
193 193
 
194 194
 /**
Please login to merge, or discard this patch.
ecrire/inc/recherche_to_array.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 		$_id_table = reset($_id_table);
67 67
 	}
68 68
 
69
-	$requete['SELECT'][] = 't.' . $_id_table;
69
+	$requete['SELECT'][] = 't.'.$_id_table;
70 70
 	$a = [];
71 71
 	// Recherche fulltext
72 72
 	foreach ($champs as $champ => $poids) {
@@ -77,13 +77,13 @@  discard block
 block discarded – undo
77 77
 				$champ = "t.$champ";
78 78
 			}
79 79
 			$requete['SELECT'][] = $champ;
80
-			$a[] = $champ . ' ' . $methode . ' ' . $q;
80
+			$a[] = $champ.' '.$methode.' '.$q;
81 81
 		}
82 82
 	}
83 83
 	if ($a) {
84 84
 		$requete['WHERE'][] = implode(' OR ', $a);
85 85
 	}
86
-	$requete['FROM'][] = table_objet_sql($table) . ' AS t';
86
+	$requete['FROM'][] = table_objet_sql($table).' AS t';
87 87
 
88 88
 	$results = [];
89 89
 
@@ -244,8 +244,8 @@  discard block
 block discarded – undo
244 244
 					);
245 245
 				} // cas table de liaison generique spip_xxx_yyy
246 246
 				elseif (
247
-					($t = $trouver_table($table_arrivee . '_' . $table_depart, $serveur))
248
-					|| ($t = $trouver_table($table_depart . '_' . $table_arrivee, $serveur))
247
+					($t = $trouver_table($table_arrivee.'_'.$table_depart, $serveur))
248
+					|| ($t = $trouver_table($table_depart.'_'.$table_arrivee, $serveur))
249 249
 				) {
250 250
 					$s = sql_select(
251 251
 						"$cle_depart,$cle_arrivee",
@@ -284,12 +284,12 @@  discard block
 block discarded – undo
284 284
 				}
285 285
 				if (isset($joint['champs']) && $joint['champs']) {
286 286
 					foreach ($joint['champs'] as $c => $val) {
287
-						$results[$id]['champs'][$table_liee . '.' . $c] = $val;
287
+						$results[$id]['champs'][$table_liee.'.'.$c] = $val;
288 288
 					}
289 289
 				}
290 290
 				if (isset($joint['matches']) && $joint['matches']) {
291 291
 					foreach ($joint['matches'] as $c => $val) {
292
-						$results[$id]['matches'][$table_liee . '.' . $c] = $val;
292
+						$results[$id]['matches'][$table_liee.'.'.$c] = $val;
293 293
 					}
294 294
 				}
295 295
 			}
Please login to merge, or discard this patch.
ecrire/inc/presenter_enfants.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	$result = sql_select(
43 43
 		'id_rubrique, id_parent, titre, descriptif, lang',
44 44
 		'spip_rubriques',
45
-		'id_parent=' . (int) $collection,
45
+		'id_parent='.(int) $collection,
46 46
 		'',
47 47
 		'0+titre,titre',
48 48
 		$debut == -1 ? '' : "$debut,$limite"
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
 
74 74
 			$lib_bouton = (acces_restreint_rubrique($id_rubrique)
75 75
 				? http_img_pack('auteur-0minirezo-16.png', '', " width='16' height='16'", _T('image_administrer_rubrique'))
76
-				: '') .
77
-				" <a class='titremlien' dir='$lang_dir'" .
78
-				($row['lang'] !== $GLOBALS['spip_lang'] ? " hreflang='" . $row['lang'] . "'" : '') .
79
-				" href='" .
80
-				generer_objet_url($id_rubrique, 'rubrique') .
81
-				"'><span class='titre'>" .
82
-				$rang . $titre
76
+				: '').
77
+				" <a class='titremlien' dir='$lang_dir'".
78
+				($row['lang'] !== $GLOBALS['spip_lang'] ? " hreflang='".$row['lang']."'" : '').
79
+				" href='".
80
+				generer_objet_url($id_rubrique, 'rubrique').
81
+				"'><span class='titre'>".
82
+				$rang.$titre
83 83
 				. '</span>'
84 84
 				. (is_string($logo) ? $logo : '')
85 85
 				. '</a>';
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
 				;
90 90
 
91 91
 			$res[] =
92
-				debut_cadre_sous_rub(($id_parent ? 'rubrique-24.png' : 'secteur-24.png'), true, '', $titre) .
93
-				$les_sous_enfants .
92
+				debut_cadre_sous_rub(($id_parent ? 'rubrique-24.png' : 'secteur-24.png'), true, '', $titre).
93
+				$les_sous_enfants.
94 94
 				fin_cadre_sous_rub();
95 95
 		}
96 96
 	}
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
  *  Le contenu du bloc dépliable
110 110
  */
111 111
 function sous_enfant_rub($collection2) {
112
-	$nb = sql_countsel('spip_rubriques', 'id_parent=' . (int) $collection2);
112
+	$nb = sql_countsel('spip_rubriques', 'id_parent='.(int) $collection2);
113 113
 
114 114
 	$retour = '';
115 115
 	$pagination = '';
@@ -121,23 +121,23 @@  discard block
 block discarded – undo
121 121
 	 * Si > 500 on affiche une pagination
122 122
 	 */
123 123
 	if ($nb > $limite) {
124
-		$debut = _request('debut_rubrique' . $collection2) ?: $debut;
124
+		$debut = _request('debut_rubrique'.$collection2) ?: $debut;
125 125
 		$pagination = chercher_filtre('pagination');
126
-		$pagination = '<nav class="pagination">' . $pagination(
126
+		$pagination = '<nav class="pagination">'.$pagination(
127 127
 			$nb,
128
-			'_rubrique' . $collection2,
128
+			'_rubrique'.$collection2,
129 129
 			$debut,
130 130
 			$limite,
131 131
 			true,
132 132
 			'prive'
133
-		) . '</nav>';
133
+		).'</nav>';
134 134
 		$limite = $debut + $limite;
135 135
 	}
136 136
 
137 137
 	$result = sql_select(
138 138
 		'id_rubrique, id_parent, titre, lang',
139 139
 		'spip_rubriques',
140
-		'id_parent=' . (int) $collection2,
140
+		'id_parent='.(int) $collection2,
141 141
 		'',
142 142
 		'0+titre,titre',
143 143
 		$debut == -1 ? '' : "$debut,$limite"
@@ -157,14 +157,14 @@  discard block
 block discarded – undo
157 157
 		changer_typo($row['lang']);
158 158
 		$lang_dir = lang_dir($row['lang']);
159 159
 		if (autoriser('voir', 'rubrique', $id_rubrique2)) {
160
-			$retour .= "\n<li class='item' dir='$lang_dir'><a href='" . generer_objet_url(
160
+			$retour .= "\n<li class='item' dir='$lang_dir'><a href='".generer_objet_url(
161 161
 				$id_rubrique2,
162 162
 				'rubrique'
163
-			) . "'>" . $rang2 . $titre2 . "</a></li>\n";
163
+			)."'>".$rang2.$titre2."</a></li>\n";
164 164
 		}
165 165
 	}
166 166
 
167
-	$retour = $pagination . $retour . $pagination;
167
+	$retour = $pagination.$retour.$pagination;
168 168
 
169 169
 	if (!$retour) {
170 170
 		return '';
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 	return debut_block_depliable($debut > 0, "enfants$collection2")
174 174
 	. "\n<ul class='liste-items sous-sous-rub'>\n"
175 175
 	. $retour
176
-	. "</ul>\n" . fin_block() . "\n\n";
176
+	. "</ul>\n".fin_block()."\n\n";
177 177
 }
178 178
 
179 179
 /**
@@ -192,13 +192,13 @@  discard block
 block discarded – undo
192 192
 	$debut = 0;
193 193
 	$limite = 500;
194 194
 
195
-	$nb = sql_countsel('spip_rubriques', 'id_parent=' . (int) $id_rubrique);
195
+	$nb = sql_countsel('spip_rubriques', 'id_parent='.(int) $id_rubrique);
196 196
 
197 197
 	if ($nb > $limite) {
198
-		$debut = _request('debut_rubrique' . $id_rubrique) ?: $debut;
198
+		$debut = _request('debut_rubrique'.$id_rubrique) ?: $debut;
199 199
 		$pagination = chercher_filtre('pagination');
200
-		$pagination = '<br class="nettoyeur"><nav class="pagination">' .
201
-			$pagination($nb, '_rubrique' . $id_rubrique, $debut, $limite, true, 'prive') .
200
+		$pagination = '<br class="nettoyeur"><nav class="pagination">'.
201
+			$pagination($nb, '_rubrique'.$id_rubrique, $debut, $limite, true, 'prive').
202 202
 		'</nav>';
203 203
 	}
204 204
 
Please login to merge, or discard this patch.
ecrire/inc/preselectionner_parent_nouvel_objet.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 		$id_rubrique = $GLOBALS['connect_id_rubrique'][0];
42 42
 	} elseif (
43 43
 		is_int(_AUTO_SELECTION_RUBRIQUE)
44
-		&& sql_fetsel('id_rubrique', 'spip_rubriques', 'id_rubrique=' . (int) _AUTO_SELECTION_RUBRIQUE)
44
+		&& sql_fetsel('id_rubrique', 'spip_rubriques', 'id_rubrique='.(int) _AUTO_SELECTION_RUBRIQUE)
45 45
 	) {
46 46
 		$id_rubrique = _AUTO_SELECTION_RUBRIQUE;
47 47
 	} else {
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
 		$id_rubrique = $row_rub['id_rubrique'];
51 51
 	}
52 52
 	// si le choix ne convient pas, on cherche dans un secteur
53
-	if (!autoriser('creer' . $objet . 'dans', 'rubrique', $id_rubrique)) {
53
+	if (!autoriser('creer'.$objet.'dans', 'rubrique', $id_rubrique)) {
54 54
 		$id_rubrique = '';
55 55
 		// manque de chance, la rubrique n'est pas autorisee, on cherche un des secteurs autorises
56 56
 		$res = sql_select('id_rubrique', 'spip_rubriques', 'id_parent=0');
57 57
 		while (!$id_rubrique && ($row_rub = sql_fetch($res))) {
58
-			if (autoriser('creer' . $objet . 'dans', 'rubrique', $row_rub['id_rubrique'])) {
58
+			if (autoriser('creer'.$objet.'dans', 'rubrique', $row_rub['id_rubrique'])) {
59 59
 				$id_rubrique = $row_rub['id_rubrique'];
60 60
 			}
61 61
 		}
Please login to merge, or discard this patch.