XH 1.6.2: Corrupt Configuration triggers Fatal Error

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Post Reply
cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

XH 1.6.2: Corrupt Configuration triggers Fatal Error

Post by cmb » Sat May 24, 2014 11:38 am

Hello Community,

as I noticed in a French support thread there is a flaw in XH_readConfiguration(). When the config file is corrupt or can't be included, XH_includeVar() returns false. This is cast to array when passed as parameter to XH_unionOf2DArrays(). However, the array cast doesn't work as I expected, because:

Code: Select all

(array) false === array(false) and (array) false != array() 
The fix is given in the mentioned thread. As I don't think there's any need to discuss this, I have already implemented it (r1309).

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply