Fix: Parse error: syntax error, unexpected '}'

Fix: bad indentation !!! use tabulation instead spaces please !!!
This commit is contained in:
Regis Houssin 2015-10-15 16:16:50 +02:00
parent 39d89ef9aa
commit d44e961014

View File

@ -152,7 +152,7 @@ if (empty($reshook)) {
} }
} }
// Action Add user // Action Add user
if ($action == 'add' && $canadduser) { if ($action == 'add' && $canadduser) {
$error = 0; $error = 0;
@ -167,8 +167,7 @@ if (empty($reshook)) {
$action = "create"; // Go back to create page $action = "create"; // Go back to create page
} }
if (!empty($conf->file->main_limit_users)) // If option to limit users is set if (!empty($conf->file->main_limit_users)) { // If option to limit users is set
{
$nb = $object->getNbOfUsers("active"); $nb = $object->getNbOfUsers("active");
if ($nb >= $conf->file->main_limit_users) { if ($nb >= $conf->file->main_limit_users) {
$error ++; $error ++;
@ -251,13 +250,12 @@ if (empty($reshook)) {
} }
$action = "create"; // Go back to create page $action = "create"; // Go back to create page
} }
} }
} }
// Action add usergroup // Action add usergroup
if (($action == 'addgroup' || $action == 'removegroup') && $caneditfield) if (($action == 'addgroup' || $action == 'removegroup') && $caneditfield)
{ {
if ($group) if ($group)
{ {
$editgroup = new UserGroup($db); $editgroup = new UserGroup($db);
@ -279,6 +277,7 @@ if (($action == 'addgroup' || $action == 'removegroup') && $caneditfield)
setEventMessage($object->error, 'errors'); setEventMessage($object->error, 'errors');
} }
} }
}
if ($action == 'update' && !$_POST["cancel"]) { if ($action == 'update' && !$_POST["cancel"]) {
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
@ -492,9 +491,8 @@ if (($action == 'addgroup' || $action == 'removegroup') && $caneditfield)
setEventMessage($object->error, 'errors'); setEventMessage($object->error, 'errors');
} }
} }
}
// Change password with a new generated one // Change password with a new generated one
if ((($action == 'confirm_password' && $confirm == 'yes') if ((($action == 'confirm_password' && $confirm == 'yes')
|| ($action == 'confirm_passwordsend' && $confirm == 'yes')) && $caneditpassword || ($action == 'confirm_passwordsend' && $confirm == 'yes')) && $caneditpassword
) { ) {
@ -518,7 +516,7 @@ if (($action == 'addgroup' || $action == 'removegroup') && $caneditfield)
} }
} }
// Action initialisation donnees depuis record LDAP // Action initialisation donnees depuis record LDAP
if ($action == 'adduserldap') { if ($action == 'adduserldap') {
$selecteduser = $_POST['users']; $selecteduser = $_POST['users'];