diff --git a/inc/html.php b/inc/html.php
index 9d3c9270744b04f29c9b33c99ebac246228ed465..1e02ac9ce39e81b324c4cd42f999ae2b5d0cff09 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -888,6 +888,9 @@ function html_diff($text='',$intro=true){
         $rev2 = (int) $_REQUEST['rev2'];
     }
 
+    $r_minor = '';
+    $l_minor = '';
+
     if($text){                      // compare text to the most current revision
         $l_rev   = '';
         $l_text  = rawWiki($ID,'');