|
From: Paul S. O. <ps...@us...> - 2002-03-19 00:25:06
|
Update of /cvsroot/phpbb/phpBB2/admin
In directory usw-pr-cvs1:/tmp/cvs-serv29081/admin
Modified Files:
admin_styles.php
Log Message:
Fix 'each' warning, bug #528254
Index: admin_styles.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/admin/admin_styles.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** admin_styles.php 18 Mar 2002 14:54:25 -0000 1.24
--- admin_styles.php 19 Mar 2002 00:25:03 -0000 1.25
***************
*** 505,509 ****
}
! $selected_values = $db->sql_fetchrow($result);
//
--- 505,515 ----
}
! if ( $selected_values = $db->sql_fetchrow($result) )
! {
! while(list($key, $val) = @each($selected_values))
! {
! $selected[$key] = $val;
! }
! }
//
***************
*** 518,528 ****
}
! $selected_names = $db->sql_fetchrow($result);
!
! reset($selected_values);
! //$selected = array_merge($selected_values, $selected_names);
! if(count($selected_values))
{
! while(list($key, $val) = each($selected_values))
{
$selected[$key] = $val;
--- 524,530 ----
}
! if ( $selected_names = $db->sql_fetchrow($result) )
{
! while(list($key, $val) = @each($selected_names))
{
$selected[$key] = $val;
***************
*** 530,542 ****
}
- reset($selected_names);
- if($selected_names)
- {
- while(list($key, $val) = each($selected_names))
- {
- $selected[$key] = $val;
- }
- }
-
$s_hidden_fields = '<input type="hidden" name="style_id" value="' . $style_id . '" />';
}
--- 532,535 ----
|