|
From: Paul S. O. <ps...@us...> - 2002-05-13 01:31:02
|
Update of /cvsroot/phpbb/phpBB2/admin
In directory usw-pr-cvs1:/tmp/cvs-serv13533/admin
Modified Files:
Tag: phpBB-2_0_0
admin_forumauth.php
Log Message:
More fixes and updates
Index: admin_forumauth.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/admin/admin_forumauth.php,v
retrieving revision 1.23.2.2
retrieving revision 1.23.2.3
diff -C2 -r1.23.2.2 -r1.23.2.3
*** admin_forumauth.php 12 May 2002 15:57:44 -0000 1.23.2.2
--- admin_forumauth.php 13 May 2002 01:30:59 -0000 1.23.2.3
***************
*** 101,106 ****
if(!empty($forum_id))
{
- $sql = "UPDATE " . FORUMS_TABLE . " SET ";
-
if(isset($HTTP_POST_VARS['simpleauth']))
{
--- 101,104 ----
***************
*** 109,113 ****
for($i = 0; $i < count($simple_ary); $i++)
{
! $sql .= ( ( $i < count($simple_ary) - 1 ) ? ', ' : '' ) . $forum_auth_fields[$i] . ' = ' . $simple_ary[$i];
}
--- 107,111 ----
for($i = 0; $i < count($simple_ary); $i++)
{
! $sql .= ( ( $sql != '' ) ? ', ' : '' ) . $forum_auth_fields[$i] . ' = ' . $simple_ary[$i];
}
***************
*** 128,136 ****
}
! $sql .= ( ( $i < count($forum_auth_fields) - 1 ) ? ', ' : '' ) .$forum_auth_fields[$i] . ' = ' . $value;
}
! $sql .= " WHERE forum_id = $forum_id";
!
}
--- 126,133 ----
}
! $sql .= ( ( $sql != '' ) ? ', ' : '' ) .$forum_auth_fields[$i] . ' = ' . $value;
}
! $sql = "UPDATE " . FORUMS_TABLE . " SET $sql WHERE forum_id = $forum_id";
}
***************
*** 139,147 ****
if ( !$db->sql_query($sql) )
{
! message_die(GENERAL_ERROR, "Couldn't update auth table!", "", __LINE__, __FILE__, $sql);
}
}
! $forum_sql = "";
$adv = 0;
}
--- 136,144 ----
if ( !$db->sql_query($sql) )
{
! message_die(GENERAL_ERROR, 'Could not update auth table', '', __LINE__, __FILE__, $sql);
}
}
! $forum_sql = '';
$adv = 0;
}
|