PluginProbe
Booktics – Appointment Booking Calendar for Service Businesses / 1.0.28
Booktics – Appointment Booking Calendar for Service Businesses v1.0.28
1.0.29 1.0.28 1.0.27 1.0.26 1.0.25 1.0.24 1.0.23 1.0.22 1.0.21 1.0.20 1.0.19 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.2 1.0.3 All 31 releases
← All changes | base/validation/rules/unique-rule.php +4 -4 1.0.0 → 1.0.28 View file →
@@ -25,14 +25,14 @@
25 25 * Store except id
26 26 *
27 27 * @var mixed|null
28 28 */
29 - private $exceptId;
29 + private $except_id;
30 30
31 - public function __construct( string $table, string $column, $exceptId = null ) {
31 + public function __construct( string $table, string $column, $except_id = null ) {
32 32 $this->table = $table;
33 33 $this->column = $column;
34 - $this->exceptId = $exceptId;
34 + $this->except_id = $except_id;
35 35 }
36 36
37 37 /**
38 38 * Check the rule passed or not
@@ -49,9 +49,9 @@
49 49 if ( ! $existing_user ) {
50 50 return true;
51 51 }
52 52
53 - if ( intval( $existing_user->ID ) === intval( $this->exceptId ) ) {
53 + if ( intval( $existing_user->ID ) === intval( $this->except_id ) ) {
54 54 return true;
55 55 }
56 56
57 57 return false;