Fix: Postgres compatibility

This commit is contained in:
Laurent Destailleur 2010-03-24 13:43:10 +00:00
parent 9838cb993f
commit d0f5ddb322

View File

@ -127,6 +127,9 @@ class Categorie
global $conf,$langs;
$langs->load('categories');
// Clean parameters
if (empty($this->visible)) $this->visible=0;
if ($this->already_exists())
{
$this->error=$langs->trans("ImpossibleAddCat");