Recent Topics

1 Mar 25, 2006 20:02    

Hey, line 49 of /skins/_subscriptions.php should be changed from;

param( 'redirect_to', 'string', '');

To;

$redirect_to = param( 'redirect_to', 'string', '');

Otherwise some installations will get the following error;

Notice: Undefined variable: redirect_to in D:\Work\Site\b2evolution\blogs\skins\_subscriptions.php on line 59

Thanks
-balupton

2 Mar 25, 2006 20:17

This seems to be a problem, when you include _subscriptions.php out of a function (non-global) context, isn't it?

This would also happen then with other skin stub files, I think.

3 Mar 25, 2006 20:21

For me I do a foreach loop to make all variables global (im inside a function), then include the _subscription.php in that function.

If redirect_to does become set as a global couldnt you do;
if( ! isset($redirect_to) ) global $redirect_to;
?
But the way i posted above seems to do the job in a simplier way anyhow....

So yer....

4 Mar 25, 2006 20:30

Your fix was the right way to do. I've just committed it and also found the same "problem" in _msgform.php and _profile.php.

Thanks for reporting!


Form is loading...