hi.. sorry i made a mistake..
it was the file class-swboc-widget.php not the class-swboc-common.php ..
i replaced the contents of class-swboc-widget.php and it works without any errors.
undo what you did and replace the widget file.. and post the error message if you get one.