Skip to content
Snippets Groups Projects
Commit 9a3acdc3 authored by Anthony Bretaudeau's avatar Anthony Bretaudeau
Browse files

fix warnings

parent 1b87303d
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ function bipaa_process_page(&$variables) {
}
// Simplify node title for mRNA and proteins
if ($variables['node']->type == 'chado_feature' && ($variables['node']->feature->type_id->name == 'polypeptide' || $variables['node']->feature->type_id->name == 'mRNA')) {
if (array_key_exists('node', $variables) && $variables['node']->type == 'chado_feature' && ($variables['node']->feature->type_id->name == 'polypeptide' || $variables['node']->feature->type_id->name == 'mRNA')) {
$variables['title'] = substr(strstr($variables['title'], ', '), 2);
drupal_set_title($variables['title']);
}
......
......@@ -203,7 +203,7 @@
<?php endif; ?>
<?php print drupal_render(drupal_get_form('main_search_box_form')); ?>
<?php $search_form = drupal_get_form('main_search_box_form'); print drupal_render($search_form); ?>
<?php print render($page['content']); ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment