Skip to content

A free open source IT asset/license management system

Resolves Rollbar error 16746 - missing array key 'extension'

Brady Wetheringtonab12ad11400d
diff --git a/app/Console/Commands/RestoreFromBackup.php b/app/Console/Commands/RestoreFromBackup.php
index c5e3a4c790..b1f1753564 100644
--- a/app/Console/Commands/RestoreFromBackup.php
+++ b/app/Console/Commands/RestoreFromBackup.php
@@ -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;