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
(
    [budapest] => Array
        (
            [_id] => MongoId Object
                (
                    [objectID:MongoId:private] => MongoDB\BSON\ObjectId Object
                        (
                            [oid] => 5bd6fdbd6aa60a6d9b8366dc
                        )

                )

            [name] => budapest.jpg
            [category] => port
            [assoc] => 36
            [assoc_name] => budapest_hungary
            [tags] => Array
                (
                    [0] => Budapest
                    [1] => Hungary
                    [2] => Danube
                    [3] => Europe
                    [4] => Budapest, Hungary
                    [5] => country_gallery
                )

            [filename] => budapest.jpg
            [size] => Array
                (
                    [big] => budapest_1280_413.jpg
                    [medium] => budapest_1024_330.jpg
                    [small] => budapest_768_248.jpg
                    [mobile] => budapest_480_200.jpg
                    [square] => budapest_580_620.jpg
                )

            [alt] => Budapest
            [title] => Budapest
            [created] => 29/10/2018, 12:31:57
        )

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

                )

            [name] => kalocsa-hungary.jpg
            [category] => port
            [assoc] => 
            [assoc_name] => kalocsa
            [tags] => Array
                (
                    [0] => Kalocsa
                    [1] => Hungary
                    [2] => Europe
                    [3] => Danube
                )

            [filename] => kalocsa-hungary.jpg
            [size] => Array
                (
                    [big] => kalocsa-hungary_1280_413.jpg
                    [medium] => kalocsa-hungary_1024_330.jpg
                    [small] => kalocsa-hungary_768_248.jpg
                    [mobile] => kalocsa-hungary_480_200.jpg
                    [square] => kalocsa-hungary_580_620.jpg
                )

            [alt] => Kalocsa
            [title] => Kalocsa
            [created] => 05/11/2018, 10:52:49
        )

)