wrong parameter count

This commit is contained in:
Alexander M. Turek
2003-03-22 23:54:08 +00:00
parent 66fb90359e
commit 68224a9e4e
2 changed files with 5 additions and 2 deletions

View File

@@ -8,6 +8,8 @@ $Source$
2003-03-22 Alexander M. Turek <rabus@users.sourceforge.net>
* libraries/defines.lib.php3: Small bugfix.
* libraries/defines_php.lib.php3: New constant: PMA_MYSQL_CLIENT_API.
* libraries/common.lib.php3: Possible fix against "wrong parameter count"
errors.
2003-03-22 Marc Delisle <lem9@users.sourceforge.net>
* libraries/transformations/text_plain__imagelink: display the

View File

@@ -804,7 +804,8 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
// must be open after this one so it would be default one for all the
// scripts)
if ($cfg['Server']['controluser'] != '') {
if (PMA_PHP_INT_VERSION >= 40300) {
// rabus: 3.23.49 is the MySQL client API bundled with php 4.3.0.
if (PMA_PHP_INT_VERSION >= 40300 && PMA_MYSQL_CLIENT_API >= 32349) {
$dbh = @$connect_func(
$cfg['Server']['host'] . $server_port . $server_socket,
$cfg['Server']['controluser'],
@@ -1635,7 +1636,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
if ($format == '') {
$format = $datefmt;
}
if ($timestamp == -1) {
$timestamp = time();
}