Closed (fixed)
Project:
Drupal vB
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2007 at 02:19 UTC
Updated:
3 May 2008 at 00:01 UTC
Under PHP 5.2.3 running as fastcgi, the _drupalvb_fetch_config() function fails to return $config after the first time.
Reason: require_once() will only include 'config.php' one time. I only discoverd this because my vbulletin install is running under a non-default tableprefix.
Quick fix, replace the function with this
//Function to grab the configuration/options of the vB installation
function _drupalvb_fetch_config() {
global $vbconfig_array;
if(!isset($vbconfig_array) || empty($vbconfig_array))
{
$config = array();
require_once('config.php');
$vbconfig_array = $config;
}
return $vbconfig_array;
}
Comments
Comment #1
sunThis has already been fixed in 5.x-1.1. Please update your module.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.