Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
5be51012
Commit
5be51012
authored
Aug 10, 2012
by
tbrehm
Browse files
Fixed: FS#2360 - problem after deleting server in database
parent
7762fb55
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/server.php
View file @
5be51012
...
@@ -42,7 +42,9 @@ $conf['server_id'] = intval($conf['server_id']);
...
@@ -42,7 +42,9 @@ $conf['server_id'] = intval($conf['server_id']);
*/
*/
if
(
$app
->
dbmaster
->
connect_error
==
NULL
)
{
if
(
$app
->
dbmaster
->
connect_error
==
NULL
)
{
$server_db_record
=
$app
->
dbmaster
->
queryOneRecord
(
"SELECT * FROM server WHERE server_id = "
.
$conf
[
'server_id'
]);
$server_db_record
=
$app
->
dbmaster
->
queryOneRecord
(
"SELECT * FROM server WHERE server_id = "
.
$conf
[
'server_id'
]);
if
(
!
is_array
(
$server_db_record
))
die
(
'Unable to load the server configuration from database.'
);
$conf
[
'last_datalog_id'
]
=
(
int
)
$server_db_record
[
'updated'
];
$conf
[
'last_datalog_id'
]
=
(
int
)
$server_db_record
[
'updated'
];
$conf
[
'mirror_server_id'
]
=
(
int
)
$server_db_record
[
'mirror_server_id'
];
$conf
[
'mirror_server_id'
]
=
(
int
)
$server_db_record
[
'mirror_server_id'
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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