sergiogonzalez/liferay-portal — pull request #300 by KocsisDaniel (2012-07-16 11:46:25+00:00)
Title: [TECH SUPPORT] LPS-28605 

Hi Sergio,

this pr is to fix when the mobile rule contains any entries and the portal recognizes the desktop OS as a mobile OS. The problem is when we set "any" in the rule the typesetting doesn't contains anything for that property and the code will skip the related "if" so the final return value will be true since it is the default.

I have not found any docs so I assumed the logic is right when we check the tablet part only if device OS is a valid one and because of this I did not moved the if since when I set false it will skip the tablet check anyway.

Thanks,
Daniel