@@ -1549,7 +1549,7 @@ function chado_pager_query($query, $args, $limit, $element, $count_query = '') {
$pages = explode(',', $page_arg);
$page = 0;
if (count($pages) >= $element) {
- $page = $pages[$element];
+ $page = key_exists($element, $pages) ? $pages[$element] : 0;
}
$offset = $limit * $page;
$q = $_GET['q'];
@@ -51,7 +51,7 @@ if (count($featuremap_pubs) > 0) { ?>
'/(\+)/', '/(\.)/', '/(\?)/',
);
$fixed_title = preg_replace($patterns, "\\\\$1", $pub->title);
- $citation = preg_replace('/' . $fixed_title . '/', $link, $citation);
+ $citation = preg_replace('/' . str_replace('/', ' ', $fixed_title) . '/', $link, $citation);
$rows[] = array(