Caught exception: usort() expects parameter 1 to be array, null given

File: /var/www/vhosts/25/306642/webspace/httpdocs/sligo.me/index.php

Line: 84

Trace

        #0 [internal function]: handleError(2, 'usort() expects...', '/var/www/vhosts...', 84, Array)
#1 /var/www/vhosts/25/306642/webspace/httpdocs/sligo.me/index.php(84): usort(NULL, 'SortScore')
#2 [internal function]: MainController->Cinema()
#3 /var/www/vhosts/25/306642/webspace/httpdocs/sligo.me/nicedog.php(155): call_user_func_array(Array, Array)
#4 /var/www/vhosts/25/306642/webspace/httpdocs/sligo.me/nicedog.php(243): NiceDog->dispatch()
#5 /var/www/vhosts/25/306642/webspace/httpdocs/sligo.me/index.php(1380): Run()
#6 {main}        

Exception Object

        ErrorException Object
(
    [message:protected] => usort() expects parameter 1 to be array, null given
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /var/www/vhosts/25/306642/webspace/httpdocs/sligo.me/index.php
    [line:protected] => 84
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [function] => handleError
                    [args] => Array
                        (
                            [0] => 2
                            [1] => usort() expects parameter 1 to be array, null given
                            [2] => /var/www/vhosts/25/306642/webspace/httpdocs/sligo.me/index.php
                            [3] => 84
                            [4] => Array
                                (
                                    [place] => sligo
                                    [json] => 
                                    [content] => 
                                    [movies] => 
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /var/www/vhosts/25/306642/webspace/httpdocs/sligo.me/index.php
                    [line] => 84
                    [function] => usort
                    [args] => Array
                        (
                            [0] => 
                            [1] => SortScore
                        )

                )

            [2] => Array
                (
                    [function] => Cinema
                    [class] => MainController
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [3] => Array
                (
                    [file] => /var/www/vhosts/25/306642/webspace/httpdocs/sligo.me/nicedog.php
                    [line] => 155
                    [function] => call_user_func_array
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [0] => MainController Object
                                        (
                                            [message] => 
                                            [auth] => 
                                            [layout] => 1
                                            [layout_tamplate] => views/layout.php
                                            [headers] => 
                                            [title] => Cinema
                                        )

                                    [1] => cinema
                                )

                            [1] => Array
                                (
                                )

                        )

                )

            [4] => Array
                (
                    [file] => /var/www/vhosts/25/306642/webspace/httpdocs/sligo.me/nicedog.php
                    [line] => 243
                    [function] => dispatch
                    [class] => NiceDog
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [5] => Array
                (
                    [file] => /var/www/vhosts/25/306642/webspace/httpdocs/sligo.me/index.php
                    [line] => 1380
                    [function] => Run
                    [args] => Array
                        (
                        )

                )

        )

    [previous:Exception:private] => 
    [severity:protected] => 2
)
        

Var Dump

        #0  Run() called at [/var/www/vhosts/25/306642/webspace/httpdocs/sligo.me/index.php:1380]