Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
0aa4efbc
Commit
0aa4efbc
authored
May 07, 2012
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved mysql db library.
parent
668ba095
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
interface/lib/classes/db_mysql.inc.php
interface/lib/classes/db_mysql.inc.php
+3
-0
No files found.
interface/lib/classes/db_mysql.inc.php
View file @
0aa4efbc
...
...
@@ -310,6 +310,8 @@ class db {
$key_str
.
=
"`"
.
$key
.
"`,"
;
$val_str
.
=
"'"
.
$this
->
quote
(
$val
)
.
"',"
;
}
$key_str
=
substr
(
$key_str
,
0
,
-
1
);
$val_str
=
substr
(
$val_str
,
0
,
-
1
);
$insert_data_str
=
'('
.
$key_str
.
') VALUES ('
.
$val_str
.
')'
;
}
else
{
$insert_data_str
=
$insert_data
;
...
...
@@ -335,6 +337,7 @@ class db {
foreach
(
$update_data
as
$key
=>
$val
)
{
$update_data_str
.
=
"`"
.
$key
.
"` = '"
.
$this
->
quote
(
$val
)
.
"',"
;
}
$update_data_str
=
substr
(
$update_data_str
,
0
,
-
1
);
}
else
{
$update_data_str
=
$update_data
;
}
...
...
Write
Preview
Markdown
is supported
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