Permalink
Browse files

Fix language.php error

  • Loading branch information...
1 parent e8ce543 commit 2185f29da79f9b0eb59595fa8e9509c7f7f2414b @acidvertigo acidvertigo committed Jan 2, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 catalog/includes/classes/language.php
@@ -74,10 +74,10 @@ function set_language($language) {
if ( (tep_not_null($language)) && (isset($this->catalog_languages[$language])) ) {
$this->language = $this->catalog_languages[$language];
} else {
- if (in_array($this->language,$this->catalog_languages)) {
- header('HTTP/1.1 404 Not Found'); ?>
- <h1>404 Not Found</h1>
- <? tep_exit();
+ if (in_array($this->language,$this->catalog_languages)) {
+ header('HTTP/1.1 404 Not Found');
+ echo '<h1>404 Not Found</h1>';
+ tep_exit();
}else{
$this->language = $this->catalog_languages[DEFAULT_LANGUAGE];
}

0 comments on commit 2185f29

Please sign in to comment.