From 45a6b10cd9f065db3f5235abef01ed04ce8601f6 Mon Sep 17 00:00:00 2001 From: Jan Baykara Date: Tue, 14 Feb 2023 01:07:51 +0000 Subject: [PATCH 1/2] Fix syntax error --- src/Affiliate/Local.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Affiliate/Local.php b/src/Affiliate/Local.php index ef7a2f6..593096f 100644 --- a/src/Affiliate/Local.php +++ b/src/Affiliate/Local.php @@ -124,12 +124,12 @@ public function lead( $amount = null, $user_data = array() ) { return $wpdb->insert( $wpdb->prefix . self::TABLE_NAME, - $insert_data + $insert_data, array( '%s', - '%d' + '%d', '%s', - ) + ) ); } From 09cb64ab69215d70dea131a2aa8716f16f0152db Mon Sep 17 00:00:00 2001 From: Jan Baykara Date: Tue, 14 Feb 2023 01:10:06 +0000 Subject: [PATCH 2/2] Fix syntax error --- src/Affiliate/IDevAffiliate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Affiliate/IDevAffiliate.php b/src/Affiliate/IDevAffiliate.php index d700c70..3054165 100644 --- a/src/Affiliate/IDevAffiliate.php +++ b/src/Affiliate/IDevAffiliate.php @@ -106,8 +106,8 @@ public static function getAffiliateID() { return filter_input( INPUT_GET, 'idev_id', FILTER_VALIDATE_INT, array( 'options' => array( 'min_range' => 1, - ), - ); + ) + )); } /**