Skip to content
Permalink
Browse files

fixes #9, replace create_function for PHP 7.2 compatibility

  • Loading branch information
plegall committed Jul 16, 2018
1 parent 4161bc7 commit d99a1378f9e05b087c9d590665e52ad5ccf2a41b
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/MultiView.class.php
@@ -38,7 +38,7 @@ function __construct()
);

$this->data_url_params = array_keys($this->data);
$this->data_url_params = array_map(create_function('$d', 'return "ato_".$d;'), $this->data_url_params);
$this->data_url_params = array_map(function($d) { return 'ato_'.$d; }, $this->data_url_params);
}

/**
@@ -226,7 +226,7 @@ public function user_init()
}
if ($this->data['no_history'])
{
$ret_false = create_function('', 'return false;');
$ret_false = function() {return false;};
add_event_handler('pwg_log_allowed', $ret_false);
add_event_handler('pwg_log_update_last_visit', $ret_false);
}

0 comments on commit d99a137

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