[-] Classes : fix bug #PSTEST-1191 - wrong carrier positions

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14768 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-04-19 13:35:37 +00:00
parent 6367fd29b1
commit a32a003b5c
+1 -1
View File
@@ -1102,7 +1102,7 @@ class CarrierCore extends ObjectModel
FROM `'._DB_PREFIX_.'carrier`
WHERE `deleted` = 0';
$position = DB::getInstance()->getValue($sql);
return ($position !== false) ? (int)$position : -1;
return (is_numeric($position)) ? $position : -1;
}
/**