# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: moodle/lib/setup.php
--- moodle/lib/setup.php Base (1.339)
+++ moodle/lib/setup.php Locally Modified (Based On 1.339)
@@ -168,8 +168,10 @@
         define('CLI_MAINTENANCE', true);
     }
 } else {
+    if (!defined('CLI_MAINTENANCE')) {
     define('CLI_MAINTENANCE', false);
 }
+}
 
 // Detect ajax scripts - they are similar to CLI because we can not redirect, output html, etc.
 if (!defined('AJAX_SCRIPT')) {
