php error line 162 expects parameter 2 to be array, null given

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