fix: If session save path is "", php will use /tmp (#7359)

This commit is contained in:
Tony Murray
2017-09-18 13:22:24 -05:00
committed by Neil Lathwood
parent 7e601c31ed
commit a410e34115

View File

@ -183,7 +183,7 @@ foreach ($modules as $extension) {
echo "<tr class='$row_class'><td>PHP module <strong>$extension</strong></td><td>$status</td><td></td></tr>";
}
if (is_writable(session_save_path())) {
if (is_writable(session_save_path() === '' ? '/tmp' : session_save_path())) {
$status = 'yes';
$row_class = 'success';
} else {