an assignment syntax does not work on PHP 5.1.2

This commit is contained in:
Marc Delisle
2006-01-12 21:03:34 +00:00
parent 7ceba19cb8
commit 734a5ca6fc
2 changed files with 3 additions and 1 deletions

View File

@@ -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 <lem9@users.sourceforge.net>
* sql.php, libraries/sqlparser.lib.php: other fixes for bug #1394479

View File

@@ -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];
}
}