Update system/extrafields.php

updated for previous php versions