Permalink
Browse files

Replace potentially dangerous list() = each() constructs with foreach…

… to avoid problems like one described in #630.
  • Loading branch information...
1 parent 37d8ca4 commit 76958f8d23e3a26764d99f8d6556f3bd8ca4cde8 @trustmaster trustmaster committed Apr 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/hits/hits.admin.home.php
@@ -123,7 +123,7 @@
$tables[] = $status1;
}
- while (list($i,$dat) = each($tables))
+ foreach ($tables as $dat)
{
$table_length = $dat['Index_length'] + $dat['Data_length'];
$total_length += $table_length;

0 comments on commit 76958f8

Please sign in to comment.