Fix update of host daily counters

Fix a small php error
Update counters from up to now and not yesterday