Commit d222c3f9 authored by damiankloip's avatar damiankloip Committed by tim.plunkett
Browse files

Moved display_option in constructor inside conditional

parent b30d03cf
......@@ -30,9 +30,8 @@ class ViewsDisplay {
public $display_options;
function __construct(array $display_options = array()) {
$this->display_options = $display_options['display_options'];
if (!empty($display_options)) {
$this->display_options = $display_options['display_options'];
$this->display_plugin = $display_options['display_plugin'];
$this->id = $display_options['id'];
$this->display_title = $display_options['display_title'];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment