]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - settings/general.php
Shut up some errors
[irc/unrealircd/unrealircd-webpanel.git] / settings / general.php
index 8a0c3aec52c9fb4f9db5ecafa0a85a59beb77fc8..8e4dbbc2b9dbbf9b3ab89452981bc214b4d06b98 100644 (file)
@@ -19,7 +19,7 @@ if (isset($_POST['submit']) && $canEdit)
         Message::Info("Debug Mode is now ".(($config['debug']) ? "enabled" : "disabled"));
 
 
-    if (!empty($_FILES['customFile']))
+    if (!empty($_FILES['customFile']['tmp_name']))
     {
         $cwd = getcwd();
         $a = split($cwd,'/');
@@ -106,7 +106,7 @@ do_log("\$_FILES", $_FILES);
 <div class="card m-1" style="padding-left:20px;padding-right:20px;padding-top:5px;padding-bottom:10px;max-width:fit-content">
     <h6>Debug Mode</h6>
     <div class="custom-control custom-switch">
-        <input name="debug_mode" type="checkbox" class="custom-control-input" id="debug_mode" <?php _ce($canEdit); echo ($config['debug'] == true) ? " checked" : ""; ?>>
+        <input name="debug_mode" type="checkbox" class="custom-control-input" id="debug_mode" <?php _ce($canEdit); echo (get_config('debug') == true) ? " checked" : ""; ?>>
         <label class="custom-control-label" for="debug_mode">Enable Debug Mode (Developers Only)</label>
     </div>
     <i>Enabling this will likely make your webpanel more difficult to use</i>