Skip to content
Snippets Groups Projects
Commit 7e6905b8 authored by Loraine Gueguen's avatar Loraine Gueguen
Browse files

fix array

parent 53e915c5
No related branches found
No related tags found
1 merge request!1Merge upstream
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
......@@ -163,7 +163,6 @@
$url = $str2;
}
$blast_urls[$name] = $url;
print_r($blast_urls);
}
?>
<?php if (count($blast_urls) > 1): ?>
......
......@@ -163,18 +163,21 @@ if (isset($node) && $node->type == "chado_feature") {
<?php
$blast_list = explode("&", getenv('ENABLE_BLAST'));
$blast_urls = array();
foreach ($blast_list as $item)
foreach ($blast_list as $item){
list($str1,$str2) = explode('=', $item, 2);
$name = "Blast";
if (strlen($str2) == 0)
if ($str1 == "1")
if (strlen($str2) == 0){
if ($str1 == "1"){
$url = $GLOBALS['base_url'].'/blast';
else
}else{
$url = $str1;
else
}
}else{
$name = $str1;
$url = $str2;
}
$blast_urls[$name] = $url;
}
?>
<?php if (count($blast_urls) > 1): ?>
<li id="menu-item-46" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-46">
......
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