PhileCMS / Phile

A flat file CMS with a swappable parser and template engine.
https://philecms.github.io/
Other
257 stars 49 forks source link

[BUGFIX] Declare array before using it #125

Closed STOWouters closed 10 years ago

STOWouters commented 10 years ago

You forgot to declare the array before actually using it. PHP5.4 complains about this, PHP5.5 does not.

NeoBlack commented 10 years ago

+1

Schlaefer commented 10 years ago

It's not necessary to initialize an array. If it doesn't exist, it will be created. Afaik nothing changed between PHP Versions.

NeoBlack commented 10 years ago

@Schlaefer this correct, but a non initialized array produce a PHP Notice