Skip to content
Browse files

Merge pull request #13 from navblue/patch-2

Update basejs.php
  • Loading branch information...
2 parents 6d82036 + c67759a commit 39e3ef223d57c2a69e53f4f16b12156cf5a11626 @vesparny committed Sep 5, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 application/views/template/basejs.php
View
4 application/views/template/basejs.php
@@ -4,8 +4,8 @@
return{
"language": "<?php echo $this->config->item('language'); ?>",
"baseUrl": _baseUrl,
- "uri_segment_1":"<?php echo $uri_segment_1;?>",
- "uri_segment_2":"<?php echo $uri_segment_2;?>"
+ "uri_segment_1":"<?php echo (isset($uri_segment1)) ? $uri_segment_1 : '';?>",
+ "uri_segment_2":"<?php echo (isset($uri_segment2)) ? $uri_segment_2 : '';?>"
}
})();
</script>

0 comments on commit 39e3ef2

Please sign in to comment.
Something went wrong with that request. Please try again.