|
@@ -1328,7 +1328,7 @@ class Database {
|
|
|
$params = array_keys($filtred_attributes); //@todo check if the field exists in the table we should use a describe of that table
|
|
|
$values = array_values($filtred_attributes);
|
|
|
if (!empty($params) && !empty($values)) {
|
|
|
- echo $sql = 'INSERT INTO '.$table_name.' ('.implode(',',$params).') VALUES ('.implode(',',$values).')';
|
|
|
+ $sql = 'INSERT INTO '.$table_name.' ('.implode(',',$params).') VALUES ('.implode(',',$values).')';
|
|
|
$result = self::query($sql);
|
|
|
return self::get_last_insert_id();
|
|
|
}
|