Warning (2) : foreach() argument must be of type array|object, string given [in /data/web/virtuals/358557/virtual/www/src/Controller/ActivitiesController.php, line 86]
Warning (512) : Unable to emit headers. Headers sent in file=/data/web/virtuals/358557/virtual/www/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in /data/web/virtuals/358557/virtual/www/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 65]
Warning (2) : Cannot modify header information - headers already sent by (output started at /data/web/virtuals/358557/virtual/www/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /data/web/virtuals/358557/virtual/www/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 159]
Warning (2) : Cannot modify header information - headers already sent by (output started at /data/web/virtuals/358557/virtual/www/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /data/web/virtuals/358557/virtual/www/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 192]
Error: array_intersect() expects at least 1 argument, 0 given

array_intersect() expects at least 1 argument, 0 given 📋

ArgumentCountError
Error in: APP/Controller/ActivitiesController.php, line 107
APP/Controller/ActivitiesController.php at line 107 (edit)
                }
            }
//            if (!empty($ids)) {
//            debug($ids);
            $intersection call_user_func_array('array_intersect'array_values($ids));
//            debug($intersection);
            $query->where(['Activities.id IN' => $intersection]);
//            }
        }