plegall / Piwigo-community

11 stars 23 forks source link

incorrect check for column type on update #8

Closed plegall closed 8 years ago

plegall commented 8 years ago

The test if ($row['Type'] != 'mediumint') doesn't work on MySQL 5.5 which returns "mediumint(8) unsigned", we need a smarter condition.