[-] Classes : fix bug #PSTEST-1191 - wrong carrier positions
This commit is contained in:
1 parent
cb461b6cfb
commit
ff5be4c3d7
1 file changed
+1
-1
+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