Some functions do not take parameters (bug #1000021).

This commit is contained in:
Michal Čihař
2004-08-06 15:29:50 +00:00
parent 8f62277a4b
commit 3c813982d1
2 changed files with 2 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ $Source$
2004-08-06 Michal Čihař <michal@cihar.com>
* tbl_change.php: Do not free result, we need it later.
* tbl_relation.php: Some functions do not take parameters (bug #1000021).
2004-08-05 Marc Delisle <lem9@users.sourceforge.net>
(Patches from Michael Keck)

View File

@@ -130,8 +130,7 @@ foreach ($loop_array AS $primary_key_index => $enc_primary_key) {
if (empty($me_funcs[$encoded_key])) {
$cur_value = $val . ', ';
} else if ($val == '\'\''
&& (preg_match('@^(NOW|CURDATE|CURTIME|UNIX_TIMESTAMP|RAND|USER|LAST_INSERT_ID)$@', $me_funcs[$encoded_key]))) {
} else if (preg_match('@^(NOW|CURDATE|CURTIME|UNIX_TIMESTAMP|RAND|USER|LAST_INSERT_ID)$@', $me_funcs[$encoded_key])) {
$cur_value = $me_funcs[$encoded_key] . '(), ';
} else {
$cur_value = $me_funcs[$encoded_key] . '(' . $val . '), ';