Ejemplo n.º 1
0
 /** Clear messages and errors from the session data */
 public static function clear_messages()
 {
     self::$errors = self::$messages = array();
     unset(jigoshop_session::instance()->messages);
     unset(jigoshop_session::instance()->errors);
 }
Ejemplo n.º 2
0
	/** Clear messages and errors from the session data */
	function clear_messages() {
		self::$errors = self::$messages = array();
		unset($_SESSION['messages']);
		unset($_SESSION['errors']);
	}