diff options
| author | 2013-11-11 22:27:11 +0100 | |
|---|---|---|
| committer | 2013-11-11 22:27:11 +0100 | |
| commit | 94c5f41f6d663114bfac9390fc9eb72605a9e8ce (patch) | |
| tree | fff03c62b248ccdf21a6201a604a204ab911fad0 /app/models/Category.php | |
| parent | 5af7c472ed406693d19daf6899ad5ea615840740 (diff) | |
MySQL : protection longueurs catégories
Diffstat (limited to 'app/models/Category.php')
| -rwxr-xr-x | app/models/Category.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/Category.php b/app/models/Category.php index 7659e68f6..419284130 100755 --- a/app/models/Category.php +++ b/app/models/Category.php @@ -95,8 +95,8 @@ class CategoryDAO extends Model_pdo { $values = array ( $valuesTmp['id'], - $valuesTmp['name'], - $valuesTmp['color'], + substr($valuesTmp['name'], 0, 255), + substr($valuesTmp['color'], 0, 7), ); if ($stm && $stm->execute ($values)) { |
