Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Default shipping module update query bust?


beddo

Recommended Posts

Posted

admin/modules.php

line 46

 

		while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
	  tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
	}

 

The while loop just doesn't work on my install of osCommerce.

Changed it to something much more normal and it works fine:

 

		foreach ($HTTP_POST_VARS['configuration'] as $key => $value) {
	  tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
	}

 

Seems a bit odd as I know it worked at some point..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...