]> git.mjollnir.org Git - moodle.git/commitdiff
Don't use session.path check when the server is in safe mode
authormoodler <moodler>
Tue, 8 Apr 2003 03:51:38 +0000 (03:51 +0000)
committermoodler <moodler>
Tue, 8 Apr 2003 03:51:38 +0000 (03:51 +0000)
admin/index.php

index d057df515c8b4bb3bff4c7ee751f8294cee43907..338a27583748b489e7c4cec06f753568b3fa238f 100644 (file)
@@ -44,7 +44,7 @@
 
 /// Check that sessions are supported
 
-    if (!is_readable(ini_get('session.save_path'))) {
+    if (!is_readable(ini_get('session.save_path')) and !ini_get('safe_mode')) {
         $sessionpath = ini_get('session.save_path');
         notify("Warning: It appears your server does not support sessions (session.save_path = '$sessionpath')");
     }