Fix for array to string error in setFromPost()

$contenttype is an array, we only want the 'slug' key.