Completed
Push — 14.2 ( e07840...cec2da )
by Ralf
83:18 queued 52:04
created
setup/inc/class.setup_cmd_update.inc.php 1 patch
Braces   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,10 @@  discard block
 block discarded – undo
70 70
 		{
71 71
 			return lang('No update necessary, domain %1(%2) is up to date.',$this->domain,$GLOBALS['egw_domain'][$this->domain]['db_type']);
72 72
 		}
73
-		if ($check_only) return lang('Update necessary.');
73
+		if ($check_only)
74
+		{
75
+			return lang('Update necessary.');
76
+		}
74 77
 
75 78
 		$setup_info = self::$egw_setup->detection->upgrade_exclude($setup_info);
76 79
 
@@ -119,7 +122,10 @@  discard block
 block discarded – undo
119 122
 		}
120 123
 		$messages = ob_get_contents();
121 124
 		ob_end_clean();
122
-		if ($messages && $this->verbose) echo strip_tags($messages)."\n";
125
+		if ($messages && $this->verbose)
126
+		{
127
+			echo strip_tags($messages)."\n";
128
+		}
123 129
 
124 130
 		$this->restore_db();
125 131
 
Please login to merge, or discard this patch.
setup/inc/class.setup_cmd_database.inc.php 1 patch
Braces   +17 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,7 +91,11 @@  discard block
 block discarded – undo
91 91
 		{
92 92
 			throw new Api\Exception\WrongUserinput(lang("'%1' is no valid domain name!",$this->domain));
93 93
 		}
94
-		if ($this->remote_id && $check_only) return true;	// further checks can only done locally
94
+		if ($this->remote_id && $check_only)
95
+		{
96
+			return true;
97
+		}
98
+		// further checks can only done locally
95 99
 
96 100
 		$this->_merge_defaults();
97 101
 		//_debug_array($this->as_array());
@@ -136,9 +140,18 @@  discard block
 block discarded – undo
136 140
 	 */
137 141
 	private function connect($user=null,$pass=null,$name=null)
138 142
 	{
139
-		if (is_null($user)) $user = $this->db_user;
140
-		if (is_null($pass)) $pass = $this->db_pass;
141
-		if (is_null($name)) $name = $this->db_name;
143
+		if (is_null($user))
144
+		{
145
+			$user = $this->db_user;
146
+		}
147
+		if (is_null($pass))
148
+		{
149
+			$pass = $this->db_pass;
150
+		}
151
+		if (is_null($name))
152
+		{
153
+			$name = $this->db_name;
154
+		}
142 155
 
143 156
 		$this->test_db = new Api\Db();
144 157
 
Please login to merge, or discard this patch.
setup/inc/class.setup_cmd_admin.inc.php 1 patch
Braces   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,8 +76,14 @@
 block discarded – undo
76 76
 		}
77 77
 		$this->check_installed($this->domain,15);
78 78
 
79
-		if (!$this->admin_firstname) $this->set_defaults['admin_firstname'] = $this->admin_firstname = lang('Admin');
80
-		if (!$this->admin_lastname) $this->set_defaults['admin_lastname'] = $this->admin_lastname = lang('User');
79
+		if (!$this->admin_firstname)
80
+		{
81
+			$this->set_defaults['admin_firstname'] = $this->admin_firstname = lang('Admin');
82
+		}
83
+		if (!$this->admin_lastname)
84
+		{
85
+			$this->set_defaults['admin_lastname'] = $this->admin_lastname = lang('User');
86
+		}
81 87
 		if (strpos($this->admin_email,'$') !== false)
82 88
 		{
83 89
 			$this->set_defaults['email'] = $this->admin_email = str_replace(
Please login to merge, or discard this patch.
setup/inc/class.setup_cmd.inc.php 1 patch
Braces   +48 added lines, -12 removed lines patch added patch discarded remove patch
@@ -32,14 +32,20 @@  discard block
 block discarded – undo
32 32
 	 */
33 33
 	protected function _check_header_access()
34 34
 	{
35
-		if (!$this->header_secret && $this->header_admin_user)	// no secret specified but header_admin_user/password
35
+		if (!$this->header_secret && $this->header_admin_user)
36
+		{
37
+			// no secret specified but header_admin_user/password
36 38
 		{
37 39
 			if (!$this->uid) $this->uid = true;
40
+		}
38 41
 			$this->set_header_secret($this->header_admin_user,$this->header_admin_password);
39 42
 		}
40 43
 		$secret = $this->_calc_header_secret($GLOBALS['egw_info']['server']['header_admin_user'],
41 44
 				$GLOBALS['egw_info']['server']['header_admin_password']);
42
-		if ($this->uid === true) unset($this->uid);
45
+		if ($this->uid === true)
46
+		{
47
+			unset($this->uid);
48
+		}
43 49
 
44 50
 		if ($this->header_secret != $secret)
45 51
 		{
@@ -57,10 +63,13 @@  discard block
 block discarded – undo
57 63
 	 */
58 64
 	public function set_header_secret($user,$pw)
59 65
 	{
60
-		if ($this->uid || parent::save(false))	// we need to save first, to get the uid
66
+		if ($this->uid || parent::save(false))
67
+		{
68
+			// we need to save first, to get the uid
61 69
 		{
62 70
 			$this->header_secret = $this->_calc_header_secret($user,$pw);
63 71
 		}
72
+		}
64 73
 		else
65 74
 		{
66 75
 			throw new Exception ('failed to set header_secret!');
@@ -78,7 +87,10 @@  discard block
 block discarded – undo
78 87
 	 */
79 88
 	private function _calc_header_secret($header_admin_user=null,$header_admin_password=null)
80 89
 	{
81
-		if (!self::is_md5($header_admin_password)) $header_admin_password = md5($header_admin_password);
90
+		if (!self::is_md5($header_admin_password))
91
+		{
92
+			$header_admin_password = md5($header_admin_password);
93
+		}
82 94
 
83 95
 		$secret = md5($this->uid.$header_admin_user.$header_admin_password);
84 96
 		//echo "header_secret='$secret' = md5('$this->uid'.'$header_admin_user'.'$header_admin_password')\n";
@@ -135,7 +147,10 @@  discard block
 block discarded – undo
135 147
 				self::$egw_accounts_backup = $GLOBALS['egw']->accounts;
136 148
 				unset($GLOBALS['egw']->accounts);
137 149
 			}
138
-			if ($this->config) self::$egw_setup->setup_account_object($this->config);
150
+			if ($this->config)
151
+			{
152
+				self::$egw_setup->setup_account_object($this->config);
153
+			}
139 154
 		}
140 155
 		if (is_object($GLOBALS['egw']->db) && $domain)
141 156
 		{
@@ -184,7 +199,9 @@  discard block
 block discarded – undo
184 199
 		self::_setup_enviroment($domain);
185 200
 
186 201
 		// check the authentication if a header_admin_password is set, if not we dont have a header yet and no authentication
187
-		if ($GLOBALS['egw_info']['server']['header_admin_password'])	// if that's not given we dont have a header yet
202
+		if ($GLOBALS['egw_info']['server']['header_admin_password'])
203
+		{
204
+			// if that's not given we dont have a header yet
188 205
 		{
189 206
 			if (!self::$egw_setup->check_auth($user,$pw,$GLOBALS['egw_info']['server']['header_admin_user'],
190 207
 					$GLOBALS['egw_info']['server']['header_admin_password']) &&
@@ -195,6 +212,7 @@  discard block
 block discarded – undo
195 212
 				if (is_null($domain))
196 213
 				{
197 214
 					throw new Api\Exception\NoPermission(lang('Access denied: wrong username or password for manage-header !!!'),21);
215
+		}
198 216
 				}
199 217
 				else
200 218
 				{
@@ -236,7 +254,10 @@  discard block
 block discarded – undo
236 254
 
237 255
 		$messages = array();
238 256
 
239
-		if ($stop && !is_array($stop)) $stop = array($stop);
257
+		if ($stop && !is_array($stop))
258
+		{
259
+			$stop = array($stop);
260
+		}
240 261
 
241 262
 		$versions =& $GLOBALS['egw_info']['server']['versions'];
242 263
 
@@ -254,7 +275,10 @@  discard block
 block discarded – undo
254 275
 			$messages[] = self::_echo_message($verbose,lang('EGroupware API version %1 found.',$versions['api']));
255 276
 		}
256 277
 		$header_stage = self::$egw_setup->detection->check_header();
257
-		if ($stop && in_array($header_stage,$stop)) return true;
278
+		if ($stop && in_array($header_stage,$stop))
279
+		{
280
+			return true;
281
+		}
258 282
 
259 283
 		switch ($header_stage)
260 284
 		{
@@ -274,9 +298,12 @@  discard block
 block discarded – undo
274 298
 		unset($header_checks);	// no further output of the header checks
275 299
 
276 300
 		$domains = $GLOBALS['egw_domain'];
277
-		if ($domain)	// domain to check given
301
+		if ($domain)
302
+		{
303
+			// domain to check given
278 304
 		{
279 305
 			if (!isset($GLOBALS['egw_domain'][$domain])) throw new Api\Exception\WrongUserinput(lang("Domain '%1' does NOT exist !!!",$domain), 92);
306
+		}
280 307
 
281 308
 			$domains = array($domain => $GLOBALS['egw_domain'][$domain]);
282 309
 		}
@@ -324,10 +351,13 @@  discard block
 block discarded – undo
324 351
 						{
325 352
 							self::$apps_to_upgrade[] = $app;
326 353
 						}
327
-						if (!isset($data['enabled']) && isset($data['version']))	// jdots eg. is no app, but a template
354
+						if (!isset($data['enabled']) && isset($data['version']))
355
+						{
356
+							// jdots eg. is no app, but a template
328 357
 						{
329 358
 							self::$apps_to_install[] = $app;
330 359
 						}
360
+						}
331 361
 					}
332 362
 					if (self::$apps_to_install)
333 363
 					{
@@ -337,7 +367,10 @@  discard block
 block discarded – undo
337 367
 					if (self::$apps_to_upgrade)
338 368
 					{
339 369
 						$db_stage = 4;
340
-						if ($stop && in_array(10+$db_stage,$stop)) return $messages;
370
+						if ($stop && in_array(10+$db_stage,$stop))
371
+						{
372
+							return $messages;
373
+						}
341 374
 
342 375
 						throw new Api\Exception\WrongUserinput(lang('The following applications need to be upgraded:').' '.implode(', ',self::$apps_to_upgrade).'! '.lang('Use --update to do so.'),14);
343 376
 					}
@@ -379,7 +412,10 @@  discard block
 block discarded – undo
379 412
 	 */
380 413
 	static function _echo_message($verbose,$msg='')
381 414
 	{
382
-		if ($verbose) echo $msg."\n";
415
+		if ($verbose)
416
+		{
417
+			echo $msg."\n";
418
+		}
383 419
 
384 420
 		return $msg;
385 421
 	}
Please login to merge, or discard this patch.
setup/inc/functions.inc.php 1 patch
Braces   +12 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,14 +30,20 @@  discard block
 block discarded – undo
30 30
 	include('../header.inc.php');
31 31
 }
32 32
 // for an old header we need to setup a reference for the domains
33
-if (!is_array($GLOBALS['egw_domain'])) $GLOBALS['egw_domain'] =& $GLOBALS['phpgw_domain'];
33
+if (!is_array($GLOBALS['egw_domain']))
34
+{
35
+	$GLOBALS['egw_domain'] =& $GLOBALS['phpgw_domain'];
36
+}
34 37
 
35 38
 /*  If we included the header.inc.php, but it is somehow broken, cover ourselves... */
36 39
 if(!defined('EGW_SERVER_ROOT') && !defined('EGW_INCLUDE_ROOT'))
37 40
 {
38
-	if (defined('PHPGW_SERVER_ROOT') && defined('PHPGW_INCLUDE_ROOT'))	// pre 1.2 install
41
+	if (defined('PHPGW_SERVER_ROOT') && defined('PHPGW_INCLUDE_ROOT'))
42
+	{
43
+		// pre 1.2 install
39 44
 	{
40 45
 		define('EGW_SERVER_ROOT',PHPGW_SERVER_ROOT);
46
+	}
41 47
 		define('EGW_INCLUDE_ROOT',PHPGW_INCLUDE_ROOT);
42 48
 	}
43 49
 	else	// no install
@@ -84,7 +90,10 @@  discard block
 block discarded – undo
84 90
 
85 91
 if (!function_exists('version_compare') || version_compare(PHP_VERSION,$GLOBALS['egw_setup']->required_php_version,'<'))
86 92
 {
87
-	if (isset($_SERVER['HTTP_HOST'])) echo "<pre>\n";
93
+	if (isset($_SERVER['HTTP_HOST']))
94
+	{
95
+		echo "<pre>\n";
96
+	}
88 97
 	echo "EGroupware now requires PHP {$GLOBALS['egw_setup']->required_php_version} or greater.\nYour PHP version is: ".PHP_VERSION."\n";
89 98
 	echo 'Please contact your System Administrator.';
90 99
 	exit;
Please login to merge, or discard this patch.
setup/inc/hook_config_validate.inc.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -199,5 +199,8 @@
 block discarded – undo
199 199
 {
200 200
 	$filter =& $settings['ldap_search_filter'];
201 201
 
202
-	if ($filter && $filter{0} != '(') $filter = '('.$filter.')';
203
-}
202
+	if ($filter && $filter{0} != '(')
203
+	{
204
+		$filter = '('.$filter.')';
205
+	}
206
+	}
Please login to merge, or discard this patch.
setup/inc/class.setup_cmd_config.inc.php 1 patch
Braces   +20 added lines, -5 removed lines patch added patch discarded remove patch
@@ -70,10 +70,13 @@  discard block
 block discarded – undo
70 70
 		self::auth_types(true);
71 71
 
72 72
 		$values = array();
73
-		if ($this->arguments)	// we have command line arguments
73
+		if ($this->arguments)
74
+		{
75
+			// we have command line arguments
74 76
 		{
75 77
 			$save_mail_account = $this->_parse_cli_arguments($values);
76 78
 		}
79
+		}
77 80
 		else
78 81
 		{
79 82
 			$save_mail_account = $this->_parse_properties($values);
@@ -82,7 +85,10 @@  discard block
 block discarded – undo
82 85
 		// store the config
83 86
 		foreach($values as $name => $value)
84 87
 		{
85
-			if (substr($name, 0, 4) == 'acc_') continue;
88
+			if (substr($name, 0, 4) == 'acc_')
89
+			{
90
+				continue;
91
+			}
86 92
 
87 93
 			$app = 'phpgwapi';
88 94
 			if (strpos($name, '/') !== false)
@@ -98,7 +104,10 @@  discard block
 block discarded – undo
98 104
 		}
99 105
 		if (count($values))
100 106
 		{
101
-			if ($save_mail_account) $this->_save_mail_account($values);
107
+			if ($save_mail_account)
108
+			{
109
+				$this->_save_mail_account($values);
110
+			}
102 111
 
103 112
 			// flush instance cache, so above config get read from database not cache
104 113
 			Api\Cache::flush();
@@ -322,13 +331,19 @@  discard block
 block discarded – undo
322 331
 	 */
323 332
 	private function _parse_value($arg,$n,$data,$value,array &$values)
324 333
 	{
325
-		if ($value === '' && is_array($data) && !isset($data[$n]['default'])) return false;
334
+		if ($value === '' && is_array($data) && !isset($data[$n]['default']))
335
+		{
336
+			return false;
337
+		}
326 338
 
327 339
 		$name = is_array($data) || $n ? $data[$n] : $data;
328 340
 
329 341
 		if (is_array($name))
330 342
 		{
331
-			if (!$value && isset($name['default'])) $value = $name['default'];
343
+			if (!$value && isset($name['default']))
344
+			{
345
+				$value = $name['default'];
346
+			}
332 347
 
333 348
 			if (isset($name['allowed']) && !in_array($value,$name['allowed']))
334 349
 			{
Please login to merge, or discard this patch.
setup/inc/class.setup_html.inc.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,10 @@
 block discarded – undo
295 295
 		if (empty($ConfigLang))
296 296
 		{
297 297
 			$ConfigLang = setup::get_lang();
298
-			if (empty($ConfigLang)) $ConfigLang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2);
298
+			if (empty($ConfigLang))
299
+			{
300
+				$ConfigLang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2);
301
+			}
299 302
 		}
300 303
 		return Api\Html::select('ConfigLang', $ConfigLang, Api\Translation::get_available_langs(false), true,
301 304
 			$onChange ? ' onchange="this.form.submit();"' : '');
Please login to merge, or discard this patch.
setup/setup-cli.php 1 patch
Braces   +69 added lines, -17 removed lines patch added patch discarded remove patch
@@ -15,10 +15,13 @@  discard block
 block discarded – undo
15 15
 
16 16
 chdir(dirname(__FILE__));	// to enable our relative pathes to work
17 17
 
18
-if (php_sapi_name() !== 'cli')	// security precaution: forbit calling setup-cli as web-page
18
+if (php_sapi_name() !== 'cli')
19
+{
20
+	// security precaution: forbit calling setup-cli as web-page
19 21
 {
20 22
 	die('<h1>setup-cli.php must NOT be called as web-page --> exiting !!!</h1>');
21 23
 }
24
+}
22 25
 error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
23 26
 
24 27
 $dry_run = false;
@@ -33,7 +36,11 @@  discard block
 block discarded – undo
33 36
 	}
34 37
 	$arguments = $_SERVER['argv'];
35 38
 	$action = array_shift($arguments);
36
-	if (isset($arguments[0])) list($_POST['FormDomain']) = explode(',',$arguments[0]);	// header include needs that to detects the right domain
39
+	if (isset($arguments[0]))
40
+	{
41
+		list($_POST['FormDomain']) = explode(',',$arguments[0]);
42
+	}
43
+	// header include needs that to detects the right domain
37 44
 }
38 45
 else
39 46
 {
@@ -51,7 +58,10 @@  discard block
 block discarded – undo
51 58
 // check if date.timezone is set, report it and set something if not, as it gives tons of errors in install log
52 59
 if (!ini_get('date.timezone'))
53 60
 {
54
-	if (!($tz = date_default_timezone_get())) $tz = 'UTC';
61
+	if (!($tz = date_default_timezone_get()))
62
+	{
63
+		$tz = 'UTC';
64
+	}
55 65
 	echo "No default timezone (php.ini date.timezone) set, we temporary set '$tz'. You should fix that permanent!\n";
56 66
 	ini_set('date.timezone',$tz);
57 67
 }
@@ -132,13 +142,19 @@  discard block
 block discarded – undo
132 142
 			foreach($arguments as $arg)
133 143
 			{
134 144
 				list($name,$value) = explode('=',$arg,2);
135
-				if(property_exists('admin_cmd',$name))		// dont allow to overwrite admin_cmd properties
145
+				if(property_exists('admin_cmd',$name))
146
+				{
147
+					// dont allow to overwrite admin_cmd properties
136 148
 				{
137 149
 					throw new Api\Exception\WrongUserinput(lang("Invalid argument '%1' !!!",$arg),90);
138 150
 				}
139
-				if (substr($name,-1) == ']')	// allow 1-dim. arrays
151
+				}
152
+				if (substr($name,-1) == ']')
153
+				{
154
+					// allow 1-dim. arrays
140 155
 				{
141 156
 					list($name,$sub) = explode('[',substr($name,0,-1),2);
157
+				}
142 158
 					$args[$name][$sub] = $value;
143 159
 				}
144 160
 				else
@@ -148,7 +164,10 @@  discard block
 block discarded – undo
148 164
 			}
149 165
 			$cmd = new $class($args);
150 166
 			$msg = $cmd->run($time=null, $set_modifier=true, $skip_checks=false, $check_only=$dry_run);
151
-			if (is_array($msg)) $msg = print_r($msg,true);
167
+			if (is_array($msg))
168
+			{
169
+				$msg = print_r($msg,true);
170
+			}
152 171
 			echo "$msg\n";
153 172
 			break;
154 173
 		}
@@ -164,14 +183,20 @@  discard block
 block discarded – undo
164 183
 function do_config($args)
165 184
 {
166 185
 	$arg0 = explode(',',array_shift($args));
167
-	if (!($domain = @array_shift($arg0))) $domain = 'default';
186
+	if (!($domain = @array_shift($arg0)))
187
+	{
188
+		$domain = 'default';
189
+	}
168 190
 	$user = @array_shift($arg0);
169 191
 	$password = @array_shift($arg0);
170 192
 	_fetch_user_password($user,$password);
171 193
 
172
-	if ($arg0)	// direct assignments (name=value,...) left
194
+	if ($arg0)
195
+	{
196
+		// direct assignments (name=value,...) left
173 197
 	{
174 198
 		array_unshift($args,implode(',',$arg0));
199
+	}
175 200
 		array_unshift($args,'--config');
176 201
 	}
177 202
 
@@ -238,9 +263,15 @@  discard block
 block discarded – undo
238 263
 	{
239 264
 		$options[0] = $domain;
240 265
 
241
-		if ($quite_check) ob_start();
266
+		if ($quite_check)
267
+		{
268
+			ob_start();
269
+		}
242 270
 		_check_auth_config(implode(',',$options),14);
243
-		if ($quite_check) ob_end_clean();
271
+		if ($quite_check)
272
+		{
273
+			ob_end_clean();
274
+		}
244 275
 
245 276
 		if ($backup == 'no')
246 277
 		{
@@ -316,7 +347,10 @@  discard block
 block discarded – undo
316 347
 function _check_auth_config($arg,$stop,$set_lang=true)
317 348
 {
318 349
 	$options = explode(',',$arg);
319
-	if (!($domain = array_shift($options))) $domain = 'default';
350
+	if (!($domain = array_shift($options)))
351
+	{
352
+		$domain = 'default';
353
+	}
320 354
 	$user = array_shift($options);
321 355
 	$password = array_shift($options);
322 356
 	_fetch_user_password($user,$password);
@@ -324,7 +358,10 @@  discard block
 block discarded – undo
324 358
 	setup_cmd::check_installed($domain,$stop,true);
325 359
 
326 360
 	// reset charset for the output to the charset used by the OS
327
-	if ($set_lang) $GLOBALS['egw_setup']->system_charset = $GLOBALS['charset'];
361
+	if ($set_lang)
362
+	{
363
+		$GLOBALS['egw_setup']->system_charset = $GLOBALS['charset'];
364
+	}
328 365
 
329 366
 	setup_cmd::check_setup_auth($user,$password,$domain);
330 367
 
@@ -360,7 +397,10 @@  discard block
 block discarded – undo
360 397
 function _fetch_user_password(&$user,&$password)
361 398
 {
362 399
 	// read password from enviroment or query it from user, if not given
363
-	if (!$user) $user = 'admin';
400
+	if (!$user)
401
+	{
402
+		$user = 'admin';
403
+	}
364 404
 	if (!$password && !($password = $_SERVER['EGW_CLI_PASSWORD']))
365 405
 	{
366 406
 		echo lang('Admin password to header manager').' ';
@@ -406,9 +446,15 @@  discard block
 block discarded – undo
406 446
 		list($code,$language) = explode("\t",$line);
407 447
 		$languages[$code] = $language;
408 448
 	}
409
-	if (isset($languages[$lang.'-'.$nation])) return $lang.'-'.$nation;
449
+	if (isset($languages[$lang.'-'.$nation]))
450
+	{
451
+		return $lang.'-'.$nation;
452
+	}
410 453
 
411
-	if (isset($languages[$lang])) return $lang;
454
+	if (isset($languages[$lang]))
455
+	{
456
+		return $lang;
457
+	}
412 458
 
413 459
 	return 'en';
414 460
 }
@@ -448,7 +494,10 @@  discard block
 block discarded – undo
448 494
 	if (!$what || $what == 'config')
449 495
 	{
450 496
 		echo '--config '.lang('domain(default),[config user(admin)],password,[name=value,...] sets config values beside:')."\n";
451
-		if (!$what) echo '	--help config '.lang('gives further options')."\n";
497
+		if (!$what)
498
+		{
499
+			echo '	--help config '.lang('gives further options')."\n";
500
+		}
452 501
 	}
453 502
 	if ($what == 'config')
454 503
 	{
@@ -477,7 +526,10 @@  discard block
 block discarded – undo
477 526
 		echo lang('Create or edit the EGroupware configuration file: header.inc.php:')."\n";
478 527
 		echo '--create-header '.lang('header-password[,header-user(admin)]')."\n";
479 528
 		echo '--edit-header '.lang('[header-password],[header-user],[new-password],[new-user]')."\n";
480
-		if (!$what) echo '	--help header '.lang('gives further options')."\n";
529
+		if (!$what)
530
+		{
531
+			echo '	--help header '.lang('gives further options')."\n";
532
+		}
481 533
 	}
482 534
 	if ($what == 'header')
483 535
 	{
Please login to merge, or discard this patch.