Actually, a safer way to do this in case you have order-total modules that haven't been written to follow the "pattern" fully, would be this:
Replace that line:with this instead:Code:$_SESSION[$post_var] = 'c_' . $GLOBALS[$class]->code;(this is similar to my earlier suggestion, but with a check built-in to prevent those warnings you mentioned)Code:if (method_exists($GLOBALS[$class], 'clear_posts')) $GLOBALS[$class]->clear_posts();
Bookmarks