Julio Montoya 14 роки тому
батько
коміт
8d2b2faed0
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      main/inc/lib/database.lib.php

+ 1 - 1
main/inc/lib/database.lib.php

@@ -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();             
         }