| @@ -19,8 +19,10 @@ | ||
| 19 | 19 | * @link https://webappick.com |
| 20 | 20 | * @property false|mixed|string $filter |
| 21 | 21 | * @property string $discount_valid_from |
| 22 | 22 | * @property string $discount_valid_to |
| 23 | + * @property int|string $id | |
| 24 | + * @property int|string $discount_max_user | |
| 23 | 25 | * @license https://opensource.org/licenses/gpl-license.php GNU Public License |
| 24 | 26 | * @category Utility |
| 25 | 27 | */ |
| 26 | 28 | class Config { |
| @@ -51,9 +53,9 @@ | ||
| 51 | 53 | if ( empty( $this->config['products'] ) ) { |
| 52 | 54 | return false; |
| 53 | 55 | } |
| 54 | 56 | |
| 55 | - if ( $this->config['products'][0] === 'all' ) { | |
| 57 | + if ( 'all' === $this->config['products'][0] ) { | |
| 56 | 58 | return true; |
| 57 | 59 | } |
| 58 | 60 | |
| 59 | 61 | if ( ! empty( $this->config['products'] ) ) { |