Forums

Warning: implode() [function.implode]: Invalid arguments passed in...line 283 (2 posts)

  1. perryhua
    Member
    Posted 7 months ago #

    Hi I'm having problems with a plugin. It says Warning: implode() [function.implode]: Invalid arguments passed in /home/.../font/Font.php on line 283.

    The code on that line is

    if($this->editorStyles) { $editorStyles = implode('', $this->editorStyles);

    Does anyone know how to fix this?

  2. s_ha_dum
    Member
    Posted 7 months ago #

    '$this->editorStyles` is not set or isn't an array. I'd bet on the first so...

    if(!empty($this->editorStyles)) { $editorStyles = implode('', $this->editorStyles);

    The other option is ...

    if(is_array($this->editorStyles)) { $editorStyles = implode('', $this->editorStyles);

    Or both ...

    if(!empty($this->editorStyles) && is_array($this->editorStyles)) { $editorStyles = implode('', $this->editorStyles);

Reply

You must log in to post.

About this Topic

Tags

No tags yet.