On the existence of positive solutions for an ecological model with indefinite weight