Title: Wrong variable at class-frontend-coupons.php
Last modified: July 25, 2017

---

# Wrong variable at class-frontend-coupons.php

 *  Resolved [zedomel](https://wordpress.org/support/users/zedomel/)
 * (@zedomel)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/wrong-variable-at-class-frontend-coupons-php/)
 * Hi,
 * there is an error at line 37 of file class-frontend-coupons.php:
 * the function `get' has two parameters named`id`and`language, but at line 37 the
   parameter `id` is referenced as `code` causing a error calling wpdb `get_row`
   function.
 * Solution: just renamed `code` to `id`at line 37.
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Author [DOTonPAPER](https://wordpress.org/support/users/dotonpaper/)
 * (@dotonpaper)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/wrong-variable-at-class-frontend-coupons-php/#post-9357332)
 * Hello,
 * Your feedback is appreciated. We will take a look at this problem
 * Thank you.

Viewing 1 replies (of 1 total)

The topic ‘Wrong variable at class-frontend-coupons.php’ is closed to new replies.

 * ![](https://ps.w.org/booking-system/assets/icon-256x256.png?rev=2192807)
 * [Pinpoint Booking System - Version 2](https://wordpress.org/plugins/booking-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/booking-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/booking-system/)
 * [Active Topics](https://wordpress.org/support/plugin/booking-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/booking-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/booking-system/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [DOTonPAPER](https://wordpress.org/support/users/dotonpaper/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/wrong-variable-at-class-frontend-coupons-php/#post-9357332)
 * Status: resolved