Modify

Opened 5 years ago

Closed 5 years ago

#2045 closed Bug/Fehler (fixed)

module_export.php - Suche nach leerem configuration_key

Reported by: web-looks.de Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.7.0
Component: Admin Version: 2.0.6.0
Keywords: Cc:
Blocked By: Blocking:

Description

Auch wenn $module_keys leer ist, wird eine Suche nach passenden configuration_keys in der Datenbank durchgeführt.

/admin/includes/module_export.php

Suchen nach:

		$key_value_query = xtc_db_query("SELECT configuration_key,
												configuration_value,
												use_function,
												set_function
										   FROM " . TABLE_CONFIGURATION . "
										  WHERE configuration_key IN ('" . implode("', '", $module_keys) . "')
									   ORDER BY FIELD(configuration_key, '".implode("', '", $module_keys)."')");
		while ($key_value = xtc_db_fetch_array($key_value_query)) {
		  $keys_extra[$key_value['configuration_key']] = array(
			'title' => constant(strtoupper($key_value['configuration_key'] .'_TITLE')),
			'description' => constant(strtoupper($key_value['configuration_key'] .'_DESC')),
			'value' => $key_value['configuration_value'],
			'use_function' => $key_value['use_function'],
			'set_function' => $key_value['set_function'],
		  );
		}

DAVOR einfügen:

if (!empty($module_keys)) {

DANACH einfügen:

}

Attachments (0)

Change History (2)

comment:1 by Torsten Riemer, 5 years ago

Milestone: modified-shop-2.0.6.1

comment:2 by Gerhard Waldemair, 5 years ago

Resolution: fixed
Status: newclosed

In 13574:

fix #2045 - check for empty result

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.