Fix strict mode sql issue

This commit is contained in:
Nicolas Le Goff
2015-02-23 16:23:34 +01:00
parent 6b89c123e3
commit 5a55732b46
5 changed files with 9 additions and 12 deletions

View File

@@ -996,12 +996,12 @@ class databox_field implements cache_cacheableInterface
}
$sql = "INSERT INTO metadatas_structure
(`id`, `name`, `src`, `readonly`, `indexable`, `type`, `tbranch`,
(`id`, `name`, `src`, `readonly`, `required`, `indexable`, `type`, `tbranch`,
`thumbtitle`, `multi`, `business`, `aggregable`,
`report`, `sorter`)
VALUES (null, :name, '', 0, 1, 'string', '',
`report`, `sorter`, `separator`)
VALUES (null, :name, '', 0, 0, 1, 'string', '',
null, :multi,
0, 0, 1, :sorter)";
0, 0, 1, :sorter, '')";
$name = self::generateName($name);