Skip to content

Commit

Permalink
Fix if "edit_on_github" parameter isn't set
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane Goetz committed Aug 16, 2016
1 parent e9cd1e3 commit 5a1324b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<?= date("l, F j, Y g:i A", $page['modified_time']); ?>
</span>
<?php } ?>
<?php if ($params['html']['edit_on_github']) { ?>
<?php if (array_key_exists('edit_on_github', $params['html']) && $params['html']['edit_on_github']) { ?>
<span style="float: right; font-size: 10px; color: gray;">
<a href="https://github.com/<?= $params['html']['edit_on_github'] ?>/<?= $page['relative_path'] ?>" target="_blank">Edit on GitHub</a>
</span>
Expand Down

0 comments on commit 5a1324b

Please sign in to comment.