Error message

Notice: Undefined index: type in riley_preprocess_page() (line 177 of /home/it/www/www-icts/sites/all/themes/riley/template.php).