Update card.php

This commit is contained in:
Laurent Destailleur 2018-02-08 13:09:21 +01:00 committed by GitHub
parent d989483d2b
commit 3f17c92aa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -635,7 +635,7 @@ if (empty($reshook))
{
$error = $object->error; $errors = $object->errors;
}
//Prevent thirdparty's emptying if a user hasn't rights $user->rights->categorie->lire
// Prevent thirdparty's emptying if a user hasn't rights $user->rights->categorie->lire (in such a case, post of 'custcats' is not defined)
if(!empty($user->rights->categorie->lire)){
// Customer categories association
$categories = GETPOST( 'custcats', 'array' );