Browse Source

Merge pull request #391 from christianselig/7.x

Added additional condition to prevent variable from being accessed when ...
pull/381/merge
Jonathan Green 12 years ago
parent
commit
93dd11ddd3
  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"; $link = "islandora/object/{$datastream->parent->id}/datastream/{$datastream->id}/version/{$vars['version']}/revert";
} }
else {
$can_revert = FALSE;
}
if ($can_revert) { if ($can_revert) {
return l(t('revert'), $link); return l(t('revert'), $link);

Loading…
Cancel
Save