Skip to content

Commit

Permalink
Avoid passing null to strpos in item browse.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed May 3, 2023
1 parent 1d2f18e commit beab1b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/omeka/site/item/browse.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if ($itemSetShow) {
$query['item_set_id'] = $itemSet->id();
}

$layoutSetting = $this->themeSetting('browse_layout');
$layoutSetting = ($this->themeSetting('browse_layout')) ? $this->themeSetting('browse_layout') : 'list';
$gridState = ($layoutSetting == 'togglegrid') ? 'disabled' : '';
$listState = ($layoutSetting == 'togglelist') ? 'disabled': '';
$isGrid = (!isset($layoutSetting) || strpos($layoutSetting, 'grid') !== false) ? true : false;
Expand Down

0 comments on commit beab1b4

Please sign in to comment.