Fix syntax issue in base.php