MDL-28595 do not print continue link if install fails
authorPetr Skoda <commits@skodak.org>
Fri, 9 Sep 2011 08:19:27 +0000 (10:19 +0200)
committerPetr Skoda <commits@skodak.org>
Sat, 10 Sep 2011 21:57:11 +0000 (23:57 +0200)
lib/outputrenderers.php

index d685cd2..de051ad 100644 (file)
@@ -2082,7 +2082,9 @@ EOD;
             }
         }
 
-        if (!empty($link)) {
+        if (empty($CFG->rolesactive)) {
+            // continue does not make much sense if moodle is not installed yet because error is most probably not recoverable
+        } else if (!empty($link)) {
             $output .= $this->continue_button($link);
         }