diff --git a/phpBB/adm/admin_groups.php b/phpBB/adm/admin_groups.php
index 8d51b867e2..91dfe2f988 100644
--- a/phpBB/adm/admin_groups.php
+++ b/phpBB/adm/admin_groups.php
@@ -709,7 +709,7 @@ function swatch()
|
diff --git a/phpBB/adm/admin_permissions.php b/phpBB/adm/admin_permissions.php
index f78020ecb4..7ed3b4db96 100644
--- a/phpBB/adm/admin_permissions.php
+++ b/phpBB/adm/admin_permissions.php
@@ -295,7 +295,7 @@ switch ($submit)
{
$option_id_ary[] = $row['auth_option_id'];
}
- while($row = $db->sql_fetchrow($result));
+ while ($row = $db->sql_fetchrow($result));
foreach ($ug_data as $id)
{
diff --git a/phpBB/adm/admin_profile.php b/phpBB/adm/admin_profile.php
index 4c85cce6f6..482befc3b4 100644
--- a/phpBB/adm/admin_profile.php
+++ b/phpBB/adm/admin_profile.php
@@ -233,7 +233,7 @@ if ($mode == 'create' || $mode == 'edit')
// Or we are creating a new dropdown list.
$cp->vars['lang_options'] = explode("\n", $options);
}
- else if($mode == 'edit')
+ else if ($mode == 'edit')
{
$cp->vars['lang_options'] = $lang_options;
$error[] = 'You are not allowed to remove or add options within already existing profile fields';
@@ -376,7 +376,7 @@ if ($mode == 'create' || $mode == 'edit')
$error[] = $user->lang['EMPTY_FIELD_IDENT'];
}
- if(!preg_match('/^[a-z_]$/', $cp->vars['field_ident']))
+ if (!preg_match('/^[a-z_]+$/', $cp->vars['field_ident']))
{
$error[] = $user->lang['INVALID_CHARS_FIELD_IDENT'];
}
@@ -502,7 +502,7 @@ if ($mode == 'create' || $mode == 'edit')
// Initialize these array elements if we are creating a new field
if (!sizeof($cp->vars['lang_options']))
{
- if($field_type == FIELD_BOOL)
+ if ($field_type == FIELD_BOOL)
{
// No options have been defined for a boolean field.
$cp->vars['lang_options'][0] = '';
diff --git a/phpBB/adm/admin_styles.php b/phpBB/adm/admin_styles.php
index 0730511646..2800aef021 100644
--- a/phpBB/adm/admin_styles.php
+++ b/phpBB/adm/admin_styles.php
@@ -2521,7 +2521,7 @@ function install_style($action, &$error, $name, $copyright, $active, $default, $
// and do the install if necessary
if (!${$element . '_id'})
{
- $error = install_element($element, $action, $root_path, ${$element . '_id'}, ${$element . '_name'}, ${$element . '_copyright'});
+ $error = install_element($element, $error, $action, $root_path, ${$element . '_id'}, ${$element . '_name'}, ${$element . '_copyright'});
}
}
@@ -3051,7 +3051,8 @@ function install($type, $action, $id)