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
ISPConfig
ISPConfig 3
Commits
96099f4a
Commit
96099f4a
authored
Dec 11, 2008
by
tbrehm
Browse files
Fixed bug in replication.
parent
9725a275
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/modules.inc.php
View file @
96099f4a
...
...
@@ -95,7 +95,7 @@ class modules {
$tmp_sql1
=
''
;
$tmp_sql2
=
''
;
foreach
(
$data
[
'new'
]
as
$fieldname
=>
$val
)
{
$tmp_sql1
.
=
"
$fieldname
,"
;
$tmp_sql1
.
=
"
`
$fieldname
`
,"
;
$tmp_sql2
.
=
"'
$val
',"
;
}
$tmp_sql1
=
substr
(
$tmp_sql1
,
0
,
-
1
);
...
...
@@ -114,7 +114,7 @@ class modules {
if
(
$d
[
"action"
]
==
'u'
)
{
$sql
=
"UPDATE
$d[dbtable]
SET "
;
foreach
(
$data
[
'new'
]
as
$fieldname
=>
$val
)
{
$sql
.
=
"
$fieldname
= '
$val
',"
;
$sql
.
=
"
`
$fieldname
`
= '
$val
',"
;
}
$sql
=
substr
(
$sql
,
0
,
-
1
);
$idx
=
explode
(
":"
,
$d
[
"dbidx"
]);
...
...
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