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

@ -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,7 +250,6 @@ if (empty($reshook)) {
} }
$action = "create"; // Go back to create page $action = "create"; // Go back to create page
} }
} }
} }
@ -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,7 +491,6 @@ 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')