Ajout gestion d'erreur sql
This commit is contained in:
parent
0baa6e9016
commit
887a4026e5
@ -69,17 +69,19 @@ class modDolibarrModules
|
|||||||
$sql = "INSERT INTO llx_const (name,type) VALUES ('".$name."','".$type."')";
|
$sql = "INSERT INTO llx_const (name,type) VALUES ('".$name."','".$type."')";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $this->db->query($sql) )
|
if (! $this->db->query($sql) )
|
||||||
{
|
{
|
||||||
|
$err++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$err++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user