diff --git a/mod/wiki/view.php b/mod/wiki/view.php index 195ffddc1d1..447de70bbc7 100644 --- a/mod/wiki/view.php +++ b/mod/wiki/view.php @@ -297,7 +297,7 @@ // The wiki Contents - if ($canedit) { /// Print tabs with commands for this page + if (!empty($canedit)) { /// Print tabs with commands for this page $tabstyle = ' style="padding-left: 5px;padding-right: 5px" '; echo '';