Преглед изворни кода

Fix bug where loop doesn't break after first attempt is successful

Alan Lam пре 7 година
родитељ
комит
c8ed091db0
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      tasks/import_venues.php

+ 1 - 0
tasks/import_venues.php

@@ -152,6 +152,7 @@ for($i = 0; $data = fgetcsv($handle); $i++) {
 					$result = $results[0];
 					$location->latitude = $result->geometry->location->lat;
 					$location->longitude = $result->geometry->location->lng;
+					break;
 				}
 			}
 			catch(Exception $e) {