diff --git a/modules/core/www/frontpage_config.php b/modules/core/www/frontpage_config.php
index f40b6d4567c1cb26cf163d8f439377624af45bf8..84f0d22f1ffd9dd9ca051b989368ff0d9f01783c 100644
--- a/modules/core/www/frontpage_config.php
+++ b/modules/core/www/frontpage_config.php
@@ -20,9 +20,11 @@ if (!SimpleSAML_Utilities::isHTTPS()) {
 	$warnings[] = '{core:frontpage:warnings_https}';
 }
 
-$suhosinLength = ini_get('suhosin.get.max_value_length');
-if ($suhosinLength !== FALSE && (int)$suhosinLength < 2048) {
-	$warnings[] = '{core:frontpage:warnings_suhosin_url_length}';
+if (extension_loaded('suhosin')) {
+	$suhosinLength = ini_get('suhosin.get.max_value_length');
+	if (empty($suhosinLength) || (int)$suhosinLength < 2048) {
+		$warnings[] = '{core:frontpage:warnings_suhosin_url_length}';
+	}
 }