Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M. Turek <me@derrabus.de>2003-11-20 03:27:37 +0300
committerAlexander M. Turek <me@derrabus.de>2003-11-20 03:27:37 +0300
commitf7c93f5bb1617d309b0870d77509953f74de660c (patch)
tree74a7b323330bab40670886b77825042d9f3972a8 /server_collations.php
parente37bf199ae4d04129ab7ec8877e91f24be5d5da7 (diff)
Dropped some MySQL 3.21 / php 3 compatibility code.
Diffstat (limited to 'server_collations.php')
-rw-r--r--server_collations.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/server_collations.php b/server_collations.php
index fe4a7afda4..1084c28dd6 100644
--- a/server_collations.php
+++ b/server_collations.php
@@ -60,7 +60,8 @@ reset($mysql_collations);
$i = 0;
$table_row_count = count($mysql_charsets) + $mysql_collations_count;
-while (list(, $current_charset) = each($mysql_charsets)) {
+//while (list(, $current_charset) = each($mysql_charsets)) {
+foreach ($mysql_charsets as $current_charset) {
if ($i > $table_row_count / 2) {
$i = 0;
echo ' </table>' . "\n"
@@ -84,8 +85,9 @@ while (list(, $current_charset) = each($mysql_charsets)) {
. ' </td>' . "\n"
. ' </tr>' . "\n";
$useBgcolorOne = TRUE;
- reset($mysql_collations[$current_charset]);
- while (list(, $current_collation) = each($mysql_collations[$current_charset])) {
+// reset($mysql_collations[$current_charset]);
+// while (list(, $current_collation) = each($mysql_collations[$current_charset])) {
+ foreach ($mysql_collations[$current_charset] as $current_collation) {
$i++;
echo ' <tr>' . "\n"
. ' <td bgcolor="' . ($mysql_default_collations[$current_charset] == $current_collation ? $cfg['BrowseMarkerColor'] : ($useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo'])) . '">' . "\n"