mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Merge pull request #482 from nlegoff/fix_admin_fields
[3.8] Fix admin fields application
This commit is contained in:
@@ -970,8 +970,9 @@ class databox_field implements cache_cacheableInterface
|
||||
$row = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||
$stmt->closeCursor();
|
||||
|
||||
if ($row)
|
||||
$sorter = (int) $row['sorter'];
|
||||
if ($row) {
|
||||
$sorter = max(1, (int) $row['sorter']);
|
||||
}
|
||||
|
||||
$sql = "INSERT INTO metadatas_structure
|
||||
(`id`, `name`, `src`, `readonly`, `indexable`, `type`, `tbranch`,
|
||||
|
Reference in New Issue
Block a user