From 734a5ca6fca1dd9be651e34096186bc03ca4ace9 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 12 Jan 2006 21:03:34 +0000 Subject: [PATCH] an assignment syntax does not work on PHP 5.1.2 --- ChangeLog | 1 + libraries/database_interface.lib.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f3b0d5999..82bfde13f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,7 @@ $Source$ * Documentation.html: typo, thanks to Cédric Corazza * libraries/common.lib.php: remove high-ascii characters, and an assignment syntax that does not work on PHP 5.1.2 + * libraries/database_interface.lib.php: PHP 5.1.2 compatibility 2006-01-11 Marc Delisle * sql.php, libraries/sqlparser.lib.php: other fixes for bug #1394479 diff --git a/libraries/database_interface.lib.php b/libraries/database_interface.lib.php index e6bdedba6..cb703703b 100644 --- a/libraries/database_interface.lib.php +++ b/libraries/database_interface.lib.php @@ -136,7 +136,8 @@ function PMA_DBI_convert_message( $message ) { ); if ( $server_language = PMA_DBI_fetch_value( 'SHOW VARIABLES LIKE \'language\';', 0, 1 ) ) { - if ( preg_match( '&(?:\\\|\\/)([^\\\\\/]*)(?:\\\|\\/)$&i', $server_language, $found = array() ) ) { + $found = array(); + if ( preg_match( '&(?:\\\|\\/)([^\\\\\/]*)(?:\\\|\\/)$&i', $server_language, $found )) { $server_language = $found[1]; } }