Correcting the behavior of update_record.

Fixes bug 2776.
This commit is contained in:
defacer
2005-04-22 03:43:09 +00:00
parent 6a368788ac
commit d290029084
+1 -1
View File
@@ -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 .= ', ';
}