A PHP Error was encountered

Severity: Notice

Message: Undefined index: country_ports

Filename: controllers/Country_controller.php

Line Number: 42

Backtrace:

File: /var/www/vhosts/dev.rivervoyages.com/public/application/controllers/Country_controller.php
Line: 42
Function: _error_handler

File: /var/www/vhosts/dev.rivervoyages.com/public/index.php
Line: 319
Function: require_once

Array
(
    [hanoi] => Array
        (
            [_id] => MongoId Object
                (
                    [objectID:MongoId:private] => MongoDB\BSON\ObjectId Object
                        (
                            [oid] => 5bc717ed6aa60a6d9b4d58ec
                        )

                )

            [name] => hanoi-vietnam.jpg
            [category] => port
            [assoc] => 356
            [assoc_name] => hanoi
            [tags] => Array
                (
                    [0] => Hanoi
                    [1] => Vietnam
                    [2] => Mekong
                    [3] => Asia
                    [4] => river_gallery
                    [5] => country_gallery
                )

            [filename] => hanoi-vietnam.jpg
            [size] => Array
                (
                    [big] => hanoi-vietnam_1280_413.jpg
                    [medium] => hanoi-vietnam_1024_330.jpg
                    [small] => hanoi-vietnam_768_248.jpg
                    [mobile] => hanoi-vietnam_480_200.jpg
                    [square] => hanoi-vietnam_580_620.jpg
                )

            [alt] => Hanoi
            [title] => Hanoi
            [created] => 17/10/2018, 12:07:25
        )

    [ho_chi_minh_city] => Array
        (
            [_id] => MongoId Object
                (
                    [objectID:MongoId:private] => MongoDB\BSON\ObjectId Object
                        (
                            [oid] => 5bc711c46aa60a6d9b4d4248
                        )

                )

            [name] => ho-chi-minh-city.jpg
            [category] => port
            [assoc] => 98127
            [assoc_name] => ho_chi_minh_city
            [tags] => Array
                (
                    [0] => Ho Chi Minh City
                    [1] => Vietnam
                    [2] => Mekong
                    [3] => Asia
                    [4] => country_gallery
                    [5] => region_gallery
                    [6] => Asia & Indian Ocean
                )

            [filename] => ho-chi-minh-city.jpg
            [size] => Array
                (
                    [big] => ho-chi-minh-city_1280_413.jpg
                    [medium] => ho-chi-minh-city_1024_330.jpg
                    [small] => ho-chi-minh-city_768_248.jpg
                    [mobile] => ho-chi-minh-city_480_200.jpg
                    [square] => ho-chi-minh-city_580_620.jpg
                )

            [alt] => Ho Chi Minh City
            [title] => Ho Chi Minh City
            [created] => 17/10/2018, 11:41:08
        )

    [saigon] => 
)