Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
remy
jsonreader2
Commits
eb70a00a
Commit
eb70a00a
authored
Sep 16, 2021
by
remy
Browse files
adding empty file borgbackup issue
parent
51ec1126
Changes
2
Hide whitespace changes
Inline
Side-by-side
action/actionReaderTable.php
View file @
eb70a00a
...
...
@@ -11,7 +11,7 @@ if(!JSONREADER2_STANDALONE) {
}
require_once
JSR_PATH
.
'/dao/DBquery.php'
;
require_once
JSR_PATH
.
'
/dao/ReaderTableDBQuery.php'
;
require_once
'..
/dao/ReaderTableDBQuery.php'
;
require_once
"../model/ReaderTable.php"
;
if
(
!
JSONREADER2_STANDALONE
)
{
require_once
JSR_PATH
.
'/dao/LogDBQuery.php'
;
...
...
@@ -98,4 +98,4 @@ if($action == "create") {
}
}
header
(
"Location: "
.
JSR_PATH
.
"/services/jsonreaderTable.php"
);
\ No newline at end of file
header
(
"Location: ../services/jsonreaderTable.php"
);
\ No newline at end of file
include/toolReader.php
View file @
eb70a00a
...
...
@@ -109,6 +109,9 @@ function parseBorgStatusJson($name, $val, $reader) {
if
(
$second_td_displayed
==
$reader
->
BORG_BACKUP_NOT_FOUND
)
{
$second_td_displayed
=
'<span class="label" style="background-color: '
.
$reader
->
COLOR_BORG_BACKUP_NOT_FOUND
.
'" >'
.
$second_td_displayed
.
'</span>'
;
$first_td_displayed
=
'<span class="label" style="background-color: '
.
$reader
->
COLOR_BORG_BACKUP_NOT_FOUND
.
'" >'
.
$first_td_displayed
.
'</span>'
;
}
elseif
(
$second_td_displayed
==
$reader
->
BORG_BACKUP_FILE_EMPTY
)
{
$second_td_displayed
=
'<span class="label" style="background-color: '
.
$reader
->
COLOR_BORG_BACKUP_FILE_EMPTY
.
'" >'
.
$second_td_displayed
.
'</span>'
;
$first_td_displayed
=
'<span class="label" style="background-color: '
.
$reader
->
COLOR_BORG_BACKUP_FILE_EMPTY
.
'" >'
.
$first_td_displayed
.
'</span>'
;
}
}
else
{
foreach
(
$subsubval
as
$keytype
=>
$details
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment