mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: If session save path is "", php will use /tmp (#7359)
This commit is contained in:
committed by
Neil Lathwood
parent
7e601c31ed
commit
a410e34115
@ -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 {
|
||||
|
Reference in New Issue
Block a user