Skip to content

Commit 9ab8755

Browse files
author
Till Brehm
committed
Update backup.inc.php fixed syntax error in log function in older PHP versions
1 parent d0f92fc commit 9ab8755

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

server/lib/classes/backup.inc.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,11 +1076,10 @@ protected static function getReposArchives($backup_mode, $repos_path, $password,
10761076
{
10771077
global $app;
10781078
if ( ! is_dir($repos_path)) {
1079+
$dbt = debug_backtrace();
1080+
$dbt_info = $dbt[1]['file'] . ':' . $dbt[1]['line'];
10791081
$app->log("Unknown path " . var_export($repos_path, TRUE)
1080-
. ' called from ' . (function() {
1081-
$dbt = debug_backtrace();
1082-
return $dbt[1]['file'] . ':' . $dbt[1]['line'];
1083-
})(), LOGLEVEL_ERROR);
1082+
. ' called from ' . $dbt_info, LOGLEVEL_ERROR);
10841083
return FALSE;
10851084
}
10861085
switch ($backup_mode) {

0 commit comments

Comments
 (0)