Fix: Postgres compatibility
This commit is contained in:
parent
9838cb993f
commit
d0f5ddb322
@ -127,6 +127,9 @@ class Categorie
|
|||||||
global $conf,$langs;
|
global $conf,$langs;
|
||||||
$langs->load('categories');
|
$langs->load('categories');
|
||||||
|
|
||||||
|
// Clean parameters
|
||||||
|
if (empty($this->visible)) $this->visible=0;
|
||||||
|
|
||||||
if ($this->already_exists())
|
if ($this->already_exists())
|
||||||
{
|
{
|
||||||
$this->error=$langs->trans("ImpossibleAddCat");
|
$this->error=$langs->trans("ImpossibleAddCat");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user