Merge pull request #12411 from uberbrady/fix_rb_16746

Resolved Rollbar error 16746 - missing array key 'extension'
This commit is contained in:
snipe 2023-01-24 18:24:18 -08:00 committed by GitHub
commit f0b14513db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;