add function get_hosts_field

A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: models/ehm_settings_model.php
Line Number: 140