Possible to create a setting with a space in the key > nEwZ - sCRiPTz-TEAM.iNFO

Canal Rss Canal Rss
Canal Atom Canal Atom 

Possible to create a setting with a space in the key

Category: IPS Tracker - IP.Board 3.0
Viewed: 16 times
Printerfriendly version version of Microsoft Word HTML version

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.

Tue, 07 September 2010