Skip to content

Commit

Permalink
Update StationPanelController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
phirschybar committed Aug 2, 2017
1 parent 1441f0a commit 7429bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/StationPanelController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function create($panel_name){
$title = 'Create a new '.$this->single_item_name;
$title .= $this->primary_element_value ? ' for "'.$this->primary_element_value.'"' : '';

View::share('n_items_in_panel', $panel_data_with_count['data']);
View::share('n_items_in_panel', isset($panel_data_with_count['data']) ? $panel_data_with_count['data'] : 0);
View::share('method', $method);
View::share('page_title', $title);
View::share('layout_title', $title);
Expand Down

0 comments on commit 7429bf1

Please sign in to comment.