mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Resolves Rollbar error 16746 - missing array key 'extension'
This commit is contained in:
parent
935f5018cc
commit
ab12ad1140
|
@ -149,7 +149,7 @@ class RestoreFromBackup extends Command
|
|||
$boring_files[] = $raw_path;
|
||||
continue;
|
||||
}
|
||||
if (@pathinfo($raw_path)['extension'] == 'sql') {
|
||||
if (@pathinfo($raw_path, PATHINFO_EXTENSION) == 'sql') {
|
||||
\Log::debug("Found a sql file!");
|
||||
$sqlfiles[] = $raw_path;
|
||||
$sqlfile_indices[] = $i;
|
||||
|
|
Loading…
Reference in a new issue