<?php

class afWidgetHelpSettingsPeer extends BaseafWidgetHelpSettingsPeer
{
	public static function retrieveCurrent()
	{
		$userId=sfContext::getInstance()->getUser()->getGuardUser()->getId();
		
		$c=new Criteria();
		$c->add(self::USER_ID,$userId);
		$obj=self::doSelectOne($c);
		if($obj!=null)
		{
			return $obj;
		}
		else {
			$obj=new afWidgetHelpSettings();
			$obj->setUserId($userId);
			$obj->save();
			
			return $obj;
		}
	}
}

<?php

class afWidgetHelpSettingsPeer extends BaseafWidgetHelpSettingsPeer
{
	public static function retrieveCurrent()
	{
		if(!sfContext::getInstance()->getUser()->isAuthenticated()) return new afWidgetHelpSettings();
		$userId=sfContext::getInstance()->getUser()->getGuardUser()->getId();
		
		$c=new Criteria();
		$c->add(self::USER_ID,$userId);
		$obj=self::doSelectOne($c);
		if($obj!=null)
		{
			return $obj;
		}
		else {
			$obj=new afWidgetHelpSettings();
			$obj->setUserId($userId);
			$obj->save();
			
			return $obj;
		}
	}
}

Return an empty Help setting object for not authenticated user. Previously the help setting was loaded as the user will always be authenticated, this created error in installation wizard
Return an empty Help setting object for not authenticated user. Previously the help setting was loaded as the user will always be authenticated, this created error in installation wizard
