]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed potential undefined variable.
authormchurch <mchurch>
Thu, 9 Sep 2004 12:52:24 +0000 (12:52 +0000)
committermchurch <mchurch>
Thu, 9 Sep 2004 12:52:24 +0000 (12:52 +0000)
mod/wiki/view.php

index 728c259b2ae3347fa26ab53b84c9882f16e6a46e..d1e9e0351e0005bb8cfeacc0df6f73a01a4f87ea 100644 (file)
     
     // 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 '<table border="0">';