Fix missing $user into create call categorie

This commit is contained in:
Florian HENRY 2014-09-01 11:51:16 +02:00
parent fd03f582c9
commit 0473bc5138
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';