| @@ -437,9 +437,9 @@ | ||
| 437 | 437 | */ |
| 438 | 438 | public function reached_max_limit() { |
| 439 | 439 | |
| 440 | 440 | $product_ids = $this->get_compared_product_ids(); |
| 441 | - $max_limit = absint( Fns::get_option( 'modules', 'compare', 'max_limit', 10, 'number' ) ); | |
| 441 | + $max_limit = absint( Fns::get_option( 'modules', 'compare', 'max_limit', 10, 'checkbox' ) ); | |
| 442 | 442 | |
| 443 | 443 | // Remove if product is not exist. |
| 444 | 444 | foreach ( $product_ids as $id ) { |
| 445 | 445 | if ( 'publish' !== get_post_status( $id ) ) { |