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

                )

            [name] => basel.jpg
            [category] => port
            [assoc] => 94260
            [assoc_name] => basel
            [tags] => Array
                (
                    [0] => Basel
                    [1] => Switzerland
                    [2] => Rhine
                    [3] => Europe
                    [4] => river_gallery
                    [5] => country_gallery
                )

            [filename] => basel.jpg
            [size] => Array
                (
                    [big] => basel_1280_413.jpg
                    [medium] => basel_1024_330.jpg
                    [small] => basel_768_248.jpg
                    [mobile] => basel_480_200.jpg
                    [square] => basel_580_620.jpg
                )

            [alt] => Basel
            [title] => Basel
            [created] => 17/10/2018, 15:49:13
        )

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

                )

            [name] => lucerne.jpg
            [category] => port
            [assoc] => 94449
            [assoc_name] => lucerne
            [tags] => Array
                (
                    [0] => Lucerne
                    [1] => Switzerland
                    [2] => Rhine
                    [3] => Europe
                    [4] => country_gallery
                )

            [filename] => lucerne.jpg
            [size] => Array
                (
                    [big] => lucerne_1280_413.jpg
                    [medium] => lucerne_1024_330.jpg
                    [small] => lucerne_768_248.jpg
                    [mobile] => lucerne_480_200.jpg
                    [square] => lucerne_580_620.jpg
                )

            [alt] => Lucerne
            [title] => Lucerne
            [created] => 17/10/2018, 16:25:48
        )

)