Projekt

Allgemein

Profil

GX-Bug #48926 » OldSearchEngineFriendlyURLsShopContentFix.patch

Till Tepelmann, 17.10.2016 18:40

Unterschiede anzeigen:

src/system/classes/shop_content/ShopContentContentControl.inc.php (revision )
140 140

  
141 141
	protected function get_content_data($p_group_check_condition = '')
142 142
	{
143
		$t_shop_content_data_array = false;
144

  
143 145
		$t_sql = "	SELECT
144 146
						content_id,
145 147
						content_title,
......
155 157
						content_group='" . (int)$this->v_data_array['GET']['coID'] . "' " . $p_group_check_condition . "
156 158
						AND languages_id='" . (int)$_SESSION['languages_id'] . "'";
157 159
		$t_shop_content_query = xtc_db_query($t_sql);
158
		$t_shop_content_data_array = xtc_db_fetch_array($t_shop_content_query);
159 160

  
161
		if(xtc_db_num_rows($t_shop_content_query) > 0)
162
		{
163
			$t_shop_content_data_array = xtc_db_fetch_array($t_shop_content_query);
164
		}
160 165
		return $t_shop_content_data_array;
161 166
	}
162 167

  
src/includes/application_top.php (revision )
1041 1041
		}
1042 1042
	}
1043 1043
}
1044
else if(empty($_GET['coID']) && strpos($PHP_SELF, '/shop_content.php') !== false)
1045
{
1046
	header("HTTP/1.0 404 Not Found");
1047
	if(file_exists(DIR_FS_CATALOG.'error404.html')) {
1048
		include(DIR_FS_CATALOG.'error404.html');
1049
		((is_null($___mysqli_res = mysqli_close($GLOBALS["___mysqli_ston"]))) ? false : $___mysqli_res);
1050
		die();
1051
	}
1052
}
1044 1053

  
1045 1054
if(isset($_SESSION['last_redirect_url']))
1046 1055
{
    (1-1/1)