Skip to content
Snippets Groups Projects
Commit d222c3f9 authored by Damian Lee's avatar Damian Lee Committed by Tim Plunkett
Browse files

Moved display_option in constructor inside conditional

parent b30d03cf
No related branches found
No related tags found
No related merge requests found
......@@ -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'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment