Uninitilized variable

$settings is not initialized at this point