ModeEffect / subscriber-discounts-for-woocommerce

GNU General Public License v2.0
2 stars 2 forks source link

Change range(1, 26) to range(0, 25). #6

Open khaiknievel opened 3 years ago

khaiknievel commented 3 years ago

Undefined offset: 0 https://github.com/AmplifyPlugins/subscriber-discounts-for-woocommerce/blob/319b5cad49eea44ab593c0c9b36fef3bee489ce5/includes/create-discount.php#L121

Because here, range starts from 1, instead. https://github.com/AmplifyPlugins/subscriber-discounts-for-woocommerce/blob/319b5cad49eea44ab593c0c9b36fef3bee489ce5/includes/create-discount.php#L118