Update class-affiliates-totals.php

missing required resource