Opened 4 months ago

Closed 4 months 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.6.1
Component: Admin Version: 2.0.6.0

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 Changed 4 months ago by Tomcraft

  • Milestone set to modified-shop-2.0.6.1

comment:2 Changed 4 months ago by GTB

  • Resolution set to fixed
  • Status changed from new to closed

In 13574:

fix #2045 - check for empty result

Add Comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.