Log in

View Full Version : Whats wrong with this code? (please help!)


DrewM
01-08-2006, 07:36 PM
can some one tell ne whats wrong with this code:
if ($vbulletin->options['debug_mode'] == '1')
{
$config['Misc']['debug'] = true;
}
I'm trying to make it with a vb option I can turn off and on debug mode with.

knertified
01-09-2006, 12:02 AM
can some one tell ne whats wrong with this code:
if ($vbulletin->options['debug_mode'] == '1')
{
$config['Misc']['debug'] = true;
}
I'm trying to make it with a vb option I can turn off and on debug mode with.

Do you need the quotes around the number 1? Just a guess if its not a string.

harmor19
01-09-2006, 12:25 AM
$config['Misc']['debug'] = 1;