nEwZ - sCRiPTz-TEAM.iNFO

A printed version of the article

Click here to view the article in its original format

nEwZ - sCRiPTz-TEAM.iNFO _ IPS Tracker - IP.Board 3.0 _ Possible to create a setting with a space in the key

Added by: sCRiPTz-TEAM.iNFO Tue, 07 September 2010

Not sure if this is a bug or not, but right now it's possible to create a setting where the key has a space in it. While this is normally OK, you always need to access array elements that have a space in the key with quotes around that key name, like so:

$this->settings['my super setting']

There may be cases where a setting's key could be a variable itself, and that may not work. It might be best if it was made sure there was no space in the setting key.

Source: http://community.invisionpower.com/tracker/issue-25105-possible-to-create-a-setting-with-a-space-in-the-key/

Powered by nEwZ - sCRiPTz-TEAM.iNFO
© sCRiPTz-TEAM dEv. (sCRiPTz-TEAM.iNFO)