diff --git a/core/dbobject.class.php b/core/dbobject.class.php index ba57a2e18..e6a2c3788 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -790,7 +790,7 @@ abstract class DBObject if (count($aValuesToWrite) == 0) return false; $sTable = MetaModel::DBGetTable($sTableClass); - $sInsertSQL = "INSERT INTO $sTable (".join(",", $aFieldsToWrite).") VALUES (".join(", ", $aValuesToWrite).")"; + $sInsertSQL = "INSERT INTO `$sTable` (".join(",", $aFieldsToWrite).") VALUES (".join(", ", $aValuesToWrite).")"; $iNewKey = CMDBSource::InsertInto($sInsertSQL); // Note that it is possible to have a key defined here, and the autoincrement expected, this is acceptable in a non root class