Skip to content

Commit

Permalink
Fix warning by checking whether key is set. (#909)
Browse files Browse the repository at this point in the history
* Fix warning by checking whether key is set.

* Adjust plugin check in integer-weight views hook.
  • Loading branch information
jasonhildebrand authored Dec 1, 2022
1 parent 5f4a6ab commit f71f6dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion islandora.module
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ function islandora_preprocess_views_view_table(&$variables) {

// Check for a weight selector field.
foreach ($variables['view']->field as $field_key => $field) {
if ($field->options['plugin_id'] == 'integer_weight_selector') {
if ($field->getPluginId() == 'integer_weight_selector') {

// Check if the weight selector is on the first column.
$is_first_column = array_search($field_key, array_keys($variables['view']->field)) > 0 ? FALSE : TRUE;
Expand Down

0 comments on commit f71f6dc

Please sign in to comment.