Update widget.php

Fixed undefined variable