Quellcode durchsuchen

Update resources/require.php - Don't require switch.php if not present (framework support).

Nate vor 4 Jahren
Ursprung
Commit
0f6bd8e4fc
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      resources/require.php

+ 3 - 1
resources/require.php

@@ -72,7 +72,9 @@
 	require_once "resources/functions.php";
 	if ($config_exists) {
 		require "resources/pdo.php";
-		require_once "resources/switch.php";
+		if (file_exists("resources/switch.php")) {
+			require_once "resources/switch.php";
+		}
 	}
 
 //change language on the fly - for translate tool (if available)