FIxed logic problem when checking has_default variable in the database when inserting new data
FIxed logic problem when checking has_default variable in the database
when inserting new data

dilawar/moodle