Przeglądaj źródła

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

Alan Lam 7 lat temu
rodzic
commit
c8ed091db0
1 zmienionych plików z 1 dodań i 0 usunięć
  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) {