mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 20:17:14 +01:00
Merge pull request #112 from creatronics-de/mysql-fix-quotes
missing quotes added in mysql class
This commit is contained in:
commit
53b228b06c
@ -1230,7 +1230,7 @@ class DB{
|
||||
$sql = "UPDATE `$tablename` SET ";
|
||||
foreach($ArrCols as $key=>$value) {
|
||||
if($key!=$pkname && (isset($ziel[$key]) || !$zielspalten)) {
|
||||
$sqla[] = $key." = '".($escape?$this->real_escape_string($value):$value)."' ";
|
||||
$sqla[] = "`".$key."` = '".($escape?$this->real_escape_string($value):$value)."' ";
|
||||
}
|
||||
}
|
||||
if(!empty($sqla)) {
|
||||
|
Loading…
Reference in New Issue
Block a user