Ultimate Branding error after WP update

I have just updated Wordpress to the latest version and get the following error, how do I fix this?

Warning: in_array() expects parameter 2 to be array, null given in /wp-content/plugins/ultimate-branding/ultimate-branding-files/modules/custom-admin-bar-files/inc/UB_Admin_Bar.php on line 612

Hope someone can help