Jump to content

JkPublishPages - Module to publish/unpublish, trash/delete or move a page depending on dates and times


Juergen
 Share

Recommended Posts

A minor issue, but if a site isn't running multiple languages, the $language api var is null.

There needs to be a null check on line 322 in the .module file, such as:


                        if ($this->wire('languages')->count()) {
                            $lang_id = $this->wire('languages')->getLanguage()->id;
                        }

to:


                        if ($this->wire('languages') && $this->wire('languages')->count()) {
                            $lang_id = $this->wire('languages')->getLanguage()->id;
                        }

 

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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