Projekt

Allgemein

Profil

GX-Bug #53734 » AdminCustomersFix.patch

Till Tepelmann, 12.10.2017 18:06

Unterschiede anzeigen:

src/admin/customers.php (revision )
1118 1118
	
1119 1119
	$customersQueryRaw = getCustomersQuery($search, $sort);
1120 1120
	$customers_query   = xtc_db_query($customersQueryRaw);
1121
	$customers_query_numrows = xtc_db_num_rows($customers_query);
1122
	$customers_split = new splitPageResults($_GET['page'], gm_get_conf('NUMBER_OF_CUSTOMERS_PER_PAGE', 'ASSOC', true), $customersQueryRaw, $dummy);
1123
	$customers_query   = xtc_db_query($customersQueryRaw);
1121 1124
	if($_GET['search'] && xtc_not_null($_GET['search']) && xtc_db_num_rows($customers_query) === 0)
1122 1125
	{
1123 1126
		$keywords = xtc_db_input(xtc_db_prepare_input($_GET['search']));
......
1131 1134
		
1132 1135
		$customersQueryRaw = getCustomersQuery($search, $sort);
1133 1136
		$customers_query   = xtc_db_query($customersQueryRaw);
1137
		$customers_query_numrows = xtc_db_num_rows($customers_query);
1138
		$customers_split = new splitPageResults($_GET['page'], gm_get_conf('NUMBER_OF_CUSTOMERS_PER_PAGE', 'ASSOC', true), $customersQueryRaw, $dummy);
1139
		$customers_query   = xtc_db_query($customersQueryRaw);
1134 1140
	}
1135
	
1136
	$customers_split = new splitPageResults($_GET['page'], gm_get_conf('NUMBER_OF_CUSTOMERS_PER_PAGE', 'ASSOC', true), $customers_query_raw, $customers_query_numrows);
1137
	
1138
	
1141

  
1139 1142
	if(xtc_db_num_rows($customers_query) == 0)
1140 1143
	{
1141 1144
		$gmLangEditTextManager = MainFactory::create('LanguageTextManager', 'gm_lang_edit', $_SESSION['language_id']);
    (1-1/1)