Php 5.4 Views fix