mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix creating device groups issue (#10521)
* Fix creating device groups issue Not being able to write the device relationships file should not be fatal * remove @ * bootstrap.php calls this, Laravel isn't booted yet * d_echo does not include \n
This commit is contained in:
@@ -170,7 +170,11 @@ class Schema
|
||||
$base => $paths
|
||||
];
|
||||
|
||||
file_put_contents($cache_file, serialize($cache));
|
||||
if (is_writable($cache_file)) {
|
||||
file_put_contents($cache_file, serialize($cache));
|
||||
} else {
|
||||
d_echo("Could not write cache file ($cache_file)!\n");
|
||||
}
|
||||
}
|
||||
|
||||
return $cache[$base];
|
||||
|
Reference in New Issue
Block a user