Browse Source

Added additional condition to prevent variable from being accessed when it hasn't been set.

pull/391/head
Christian Selig 11 years ago
parent
commit
2ebbf211e7
  1. 3
      theme/theme.inc

3
theme/theme.inc

@ -361,6 +361,9 @@ function theme_islandora_datastream_revert_link(array $vars) {
}
$link = "islandora/object/{$datastream->parent->id}/datastream/{$datastream->id}/version/{$vars['version']}/revert";
}
else {
$can_revert = FALSE;
}
if ($can_revert) {
return l(t('revert'), $link);

Loading…
Cancel
Save