Merge remote-tracking branch 'origin/3.7' into 3.8

This commit is contained in:
Juanjo Menent 2015-08-10 20:37:44 +02:00
commit e1f627ca8e

View File

@ -264,7 +264,7 @@ if ($action == 'add' && $canadduser)
$langs->load("errors");
$db->rollback();
if (is_array($object->errors) && count($object->errors)) setEventMessage($object->errors,'errors');
else setEventMessage($object->error);
else setEventMessage($object->error, 'errors');
$action="create"; // Go back to create page
}
@ -329,7 +329,7 @@ if ($action == 'update' && ! $_POST["cancel"])
$result=$tmpuser->fetch(0, GETPOST("login"));
if ($result > 0)
{
setEventMessage($langs->trans("ErrorLoginAlreadyExists"), 'errors');
setEventMessage($langs->trans("ErrorLoginAlreadyExists", GETPOST('login')), 'errors');
$action="edit"; // Go back to create page
$error++;
}