Skip to content
Permalink
Browse files

Fix GET param issue affecting PHP 7 (fixes #3)

  • Loading branch information...
teppokoivula
teppokoivula committed Aug 13, 2016
1 parent c7006ef commit 4fb39955873ca011b91bab7b6136721788c9d36b
Showing with 2 additions and 2 deletions.
  1. +2 −2 ProcessVersionControl.module
@@ -25,7 +25,7 @@ class ProcessVersionControl extends Process implements ConfigurableModule {
'summary' => 'Provides the interface required by Version Control.',
'href' => 'http://modules.processwire.com/modules/version-control/',
'author' => 'Teppo Koivula',
'version' => '1.2.0',
'version' => '1.2.1',
'singular' => true,
'autoload' => false,
'permission' => 'version-control',
@@ -214,7 +214,7 @@ class ProcessVersionControl extends Process implements ConfigurableModule {
$settings = $this->input->get->settings;

// get page
$pages_id = isset($this->input->get->pages_id) ? (int) $this->input->get->pages_id : null;
$pages_id = $this->input->get->pages_id ? (int) $this->input->get->pages_id : null;
if (!$pages_id) throw new WireException("Missing required GET param pages_id");
$page = $this->pages->get($pages_id);
$page_ids = array($pages_id);

0 comments on commit 4fb3995

Please sign in to comment.
You can’t perform that action at this time.