Correcting the behavior of update_record.
Fixes bug 2776.
This commit is contained in:
+1
-1
@@ -1209,7 +1209,7 @@ function update_record($table, $dataobject) {
|
||||
|
||||
foreach ($ddd as $key => $value) {
|
||||
$count++;
|
||||
$update .= $key .' = \''. $value .'\'';
|
||||
$update .= $key .' = '. $db->qstr($value);
|
||||
if ($count < $numddd) {
|
||||
$update .= ', ';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user