Update whatsprot.class.php

Correction PHP Fatal error:  Call to a member function getAttribute() on a non-object