[-] 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:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user