This commit is contained in:
Alexander M. Turek
2002-06-08 16:45:16 +00:00
parent d6a2f694af
commit be8b45086c
2 changed files with 5 additions and 3 deletions

View File

@@ -13,7 +13,8 @@ $Source$
* lang/norwegian.inc.php3: Updates, thanks again to
Sven-Erik Andersen <sven-erik at users.sourceforge.net>.
* lang/polish.inc.php3: Small corrections, thanks again to
Jakub Wilk <ubanus at users.sourceforge.net>
Jakub Wilk <ubanus at users.sourceforge.net>.
* tbl_replace.php3: Fixed bug #564741 (CURDATE doesn't need any arguments).
2002-06-07 Marc Delisle <lem9@users.sourceforge.net>
* translators.html: updates (try to have only one official translator,

View File

@@ -219,8 +219,9 @@ else {
if (empty($funcs[$encoded_key])) {
$valuelist .= $val . ', ';
} else if ($val == '\'\''
&& (ereg('^(NOW|CURDATE|CURTIME|UNIX_TIMESTAMP|RAND|USER|LAST_INSERT_ID)$', $funcs[$encoded_key]))) {
} else if (($val == '\'\''
&& ereg('^(UNIX_TIMESTAMP|RAND|LAST_INSERT_ID)$', $funcs[$encoded_key]))
|| ereg('^(NOW|CURDATE|CURTIME|USER)$', $funcs[$encoded_key])) {
$valuelist .= $funcs[$encoded_key] . '(), ';
} else {
$valuelist .= $funcs[$encoded_key] . '(' . $val . '), ';