Fix categories creation

This commit is contained in:
Raphaël Doursenaud 2014-07-29 11:15:32 +02:00
parent c895c892a5
commit 6bff4dde77
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ class Categorie extends CommonObject
* -3 : categorie invalide
* -4 : category already exists
*/
function create($user='')
function create($user)
{
global $conf,$langs,$hookmanager;
$langs->load('categories');

View File

@ -138,7 +138,7 @@ if ($action == 'add' && $user->rights->categorie->creer)
// Create category in database
if (! $error)
{
$result = $object->create();
$result = $object->create($user);
if ($result > 0)
{
$action = 'confirmed';