Skip to content

Commit

Permalink
Merge pull request silverstripe#824 from nyeholt/tab_null_pointer
Browse files Browse the repository at this point in the history
BUG Fixed possible reference to null string
  • Loading branch information
chillu committed Sep 26, 2012
2 parents 33f67e1 + da70dc4 commit 6114883
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/javascript/LeftAndMain.js
Expand Up @@ -945,8 +945,8 @@ jQuery.noConflict();
*/
rewriteHashlinks: function() {
$(this).find('ul a').each(function() {
var href = $(this).attr('href').replace(/.*(#.*)/, '$1');
if(href) $(this).attr('href', href);
var href = $(this).attr('href');
if(href) $(this).attr('href', href.replace(/.*(#.*)/, '$1'));
});
}
});
Expand Down

0 comments on commit 6114883

Please sign in to comment.