Index: www-lp/www/includes/application_top.php =================================================================== diff -u -r4 -r45 --- www-lp/www/includes/application_top.php (.../application_top.php) (revision 4) +++ www-lp/www/includes/application_top.php (.../application_top.php) (revision 45) @@ -336,6 +336,13 @@ // <- SESSIONFIX } +// create user manager object +$account_query = tep_db_query("select is_partner,coeff_partner from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); +$account = tep_db_fetch_array($account_query); +$coeff_partner = $account['coeff_partner']; +$is_partner = $account['is_partner']; +$um = new UserManager($is_partner); + // create the shopping cart & fix the cart if necesary if (tep_session_is_registered('cart') && is_object($cart)) { if (PHP_VERSION < 4) { @@ -755,13 +762,5 @@ require_once(DIR_WS_FUNCTIONS . 'icirelais_function.php'); // End added for ICI Relais - - $account_query = tep_db_query("select is_partner,coeff_partner from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); - - $account = tep_db_fetch_array($account_query); - $coeff_partner = $account['coeff_partner']; - $is_partner = $account['is_partner']; - - // <- 0000003 ?>