Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Delivery/NovaPoshtaApi2.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ public function findNearestWarehouse($searchStringArray)
*/
public function getWarehouse($cityRef, $description = '')
{
$error='';
$warehouses = $this->getWarehouses($cityRef);
$data = array();
if (is_array($warehouses['data'])) {
Expand Down Expand Up @@ -492,6 +493,7 @@ protected function findArea(array $areas, $findByString = '', $ref = '')
*/
public function getArea($findByString = '', $ref = '')
{
$error='';
// Load areas list from file
empty($this->areas) and $this->areas = include dirname(__FILE__).'/NovaPoshtaApi2Areas.php';
$data = $this->findArea($this->areas, $findByString, $ref);
Expand Down Expand Up @@ -560,6 +562,7 @@ protected function findCityByRegion($cities, $areaName)
*/
public function getCity($cityName, $areaName = '')
{
$error='';
// Get cities by name
$cities = $this->getCities(0, $cityName);
if (is_array($cities['data'])) {
Expand Down