Jump to content

implode(): Invalid arguments passed, can you add a check?


InvisionHQ

Recommended Posts

When I try to create automatic club features everything is fine except for the node downloads.

public function _saveClubForm( \IPS\Member\Club $club, $values )
    {
        foreach ( array( 'allowss', 'reqss', 'comments', 'reviews' ) as $k )
        {
            $this->bitoptions[ $k ] = $values[ 'cbitoptions_' . $k ];
        }
        
        $this->types = implode( ',', $values['ctypes'] );

I got invalid arguments passed on implode (last line of the above code.

is it a bad idea to add an isset() check? 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...