← Back to Blog Front Editor Support
    netgeek12355183
    
            
            
                    
                                            
        
    
        php 7.4.* centOS 7 Apache 2
Error;
array_intersect(): Expected parameter 2 to be an array, string given
/plugins/fireunion/blogfront/controllers/Authors.php line 34
TYPE
Undefined
EXCEPTION
ErrorException
28
29
30
31
32
33
34
35
36
37
     *
     * @return integer
     */
    public function getCatNames($categories) {
        $this->categoriesOptions = $this->categoriesOptions ?: BlogCategory::orderBy('name')->lists('name', 'id');
        $categoriesNames = array_flip($this->categoriesOptions);
        $cat_names = array_flip(array_intersect($categoriesNames, $categories));
        return implode(', ', $cat_names);
    }
}
                    1-1 of 1