v1.0.9b2: Fixed a function in locallib.php for adding support to php5.2