<modification>
	<id>tshirtecommerce</id>
	<version>4.1.0</version>
	<vqmver>2.6.1</vqmver>
	<author>Tshirtecommerce Team</author>

	<file name="system/library/cart.php">
		<operation error="skip" info="Fix Submitted URI too large When click Remove-Cart button">
			<search position="before"><![CDATA[base64_encode]]></search>
			<add><![CDATA[
				foreach($option as $idx1 => $value1)
				{
					if($value1 == null || $value1 == 'undefined' || empty($value1))
						unset($option[$idx1]);
				}

				if(isset($option['design']) && isset($option['design']['option_oc']) && count($option['design']['option_oc']) > 0)
				{
					foreach($option['design']['option_oc'] as $idx2 => $value2)
					{
						if($value2 == null || $value2 == 'undefined' || empty($value2))
							unset($option['design']['option_oc'][$idx2]);
					}
				}
			]]></add>
		</operation>
	</file>
</modification>