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

                )

            [name] => madrid-1.jpg
            [category] => port
            [assoc] => 96212
            [assoc_name] => madrid
            [tags] => Array
                (
                    [0] => Madrid
                    [1] => Spain
                    [2] => Douro
                    [3] => Europe
                )

            [filename] => madrid-1.jpg
            [size] => Array
                (
                    [big] => madrid-1_1280_413.jpg
                    [medium] => madrid-1_1024_330.jpg
                    [small] => madrid-1_768_248.jpg
                    [mobile] => madrid-1_480_200.jpg
                    [square] => madrid-1_580_620.jpg
                )

            [alt] => Madrid
            [title] => Madrid
            [created] => 02/11/2018, 10:51:13
        )

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

                )

            [name] => salamanca.jpg
            [category] => port
            [assoc] => 96096
            [assoc_name] => salamanca
            [tags] => Array
                (
                    [0] => Salamanca
                    [1] => Spain
                    [2] => Douro
                    [3] => Europe
                    [4] => river_gallery
                    [5] => country_gallery
                )

            [filename] => salamanca.jpg
            [size] => Array
                (
                    [big] => salamanca_1280_413.jpg
                    [medium] => salamanca_1024_330.jpg
                    [small] => salamanca_768_248.jpg
                    [mobile] => salamanca_480_200.jpg
                    [square] => salamanca_580_620.jpg
                )

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

)