Andy
07-15-2005, 03:34 AM
I'd like to update my profile.php file according to this bug report:
http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=686
but I don't understand how to interperit CVS. Here is the CVS code that needs to be changed in profile.php
--- vb3/profile.php 2005/07/12 14:18:20 1.360
+++ vb3/profile.php 2005/07/13 13:55:00 1.361
@@ -1091,6 +1091,7 @@ if ($_POST['do'] == 'updateoptions')
'invisible' => TYPE_INT,
'autosubscribe' => TYPE_INT,
'options' => TYPE_ARRAY_BOOL,
+ 'set_options' => TYPE_ARRAY_BOOL,
'modifyavatar' => TYPE_NOCLEAN,
'userfield' => TYPE_ARRAY
));
@@ -1107,15 +1108,11 @@ if ($_POST['do'] == 'updateoptions')
// options bitfield
foreach ($vbulletin->bf_misc_useroptions AS $key => $val)
{
- if (isset($vbulletin->GPC['options']["$key"]))
+ if (isset($vbulletin->GPC['options']["$key"]) OR isset($vbulletin->GPC['set_options']["$key"]))
{
$value = $vbulletin->GPC['options']["$key"];
+ $userdata->set_bitfield('options', $key, $value);
}
- else
- {
- $value = $vbulletin->userinfo["$key"];
- }
- $userdata->set_bitfield('options', $key, $value);
}
\ No newline at end of file
For example is the third line just pointing to the correct area in the profile.php ??
http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=686
but I don't understand how to interperit CVS. Here is the CVS code that needs to be changed in profile.php
--- vb3/profile.php 2005/07/12 14:18:20 1.360
+++ vb3/profile.php 2005/07/13 13:55:00 1.361
@@ -1091,6 +1091,7 @@ if ($_POST['do'] == 'updateoptions')
'invisible' => TYPE_INT,
'autosubscribe' => TYPE_INT,
'options' => TYPE_ARRAY_BOOL,
+ 'set_options' => TYPE_ARRAY_BOOL,
'modifyavatar' => TYPE_NOCLEAN,
'userfield' => TYPE_ARRAY
));
@@ -1107,15 +1108,11 @@ if ($_POST['do'] == 'updateoptions')
// options bitfield
foreach ($vbulletin->bf_misc_useroptions AS $key => $val)
{
- if (isset($vbulletin->GPC['options']["$key"]))
+ if (isset($vbulletin->GPC['options']["$key"]) OR isset($vbulletin->GPC['set_options']["$key"]))
{
$value = $vbulletin->GPC['options']["$key"];
+ $userdata->set_bitfield('options', $key, $value);
}
- else
- {
- $value = $vbulletin->userinfo["$key"];
- }
- $userdata->set_bitfield('options', $key, $value);
}
\ No newline at end of file
For example is the third line just pointing to the correct area in the profile.php ??