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

                )

            [name] => bucharest.jpg
            [category] => port
            [assoc] => 94029
            [assoc_name] => bucharest_romania
            [tags] => Array
                (
                    [0] => Bucharest
                    [1] => Romania
                    [2] => Danube
                    [3] => Europe
                    [4] => Bucharest, Romania
                    [5] => country_gallery
                )

            [filename] => bucharest.jpg
            [size] => Array
                (
                    [big] => bucharest_1280_413.jpg
                    [medium] => bucharest_1024_330.jpg
                    [small] => bucharest_768_248.jpg
                    [mobile] => bucharest_480_200.jpg
                    [square] => bucharest_580_620.jpg
                )

            [alt] => Bucharest
            [title] => Bucharest
            [created] => 17/10/2018, 16:24:53
        )

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

                )

            [name] => iron-gate-serbia.jpg
            [category] => port
            [assoc] => giurgiu
            [assoc_name] => 
            [tags] => Array
                (
                    [0] => Giurgiu
                    [1] => Romania
                    [2] => Danube
                    [3] => Europe
                    [4] => country_gallery
                    [5] => Europe
                )

            [filename] => iron-gate-serbia.jpg
            [size] => Array
                (
                    [big] => iron-gate-serbia_1280_413.jpg
                    [medium] => iron-gate-serbia_1024_330.jpg
                    [small] => iron-gate-serbia_768_248.jpg
                    [mobile] => iron-gate-serbia_480_200.jpg
                    [square] => iron-gate-serbia_580_620.jpg
                )

            [alt] => Giurgiu
            [title] => Giurgiu
            [created] => 24/05/2019, 16:34:39
        )

)