@@ -43,14 +43,14 @@ |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | public static function GetRandomVendorID($offset, $limit) { |
46 | - $allVendors = self::GetTelematicsVendors(null); |
|
46 | + $allVendors = self::GetTelematicsVendors(null); |
|
47 | 47 | $vendorsNumber = sizeof($allVendors['vendors']); |
48 | 48 | |
49 | - if ($vendorsNumber < $limit) { |
|
50 | - if ($vendorsNumber > $offset) { |
|
49 | + if ($vendorsNumber<$limit) { |
|
50 | + if ($vendorsNumber>$offset) { |
|
51 | 51 | $limit = $vendorsNumber; |
52 | 52 | } else { |
53 | - if ($vendorsNumber == $offset) { |
|
53 | + if ($vendorsNumber==$offset) { |
|
54 | 54 | return $allVendors['vendors'][$offset]->{'vendor_id'}; |
55 | 55 | } else { |
56 | 56 | echo "The vendors numbers are less than offset"; |