PluginProbe
Tutor LMS – eLearning and online course solution / 3.9.15
Tutor LMS – eLearning and online course solution v3.9.15
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 3.9.15 3.9.14 3.9.13 3.9.12 3.9.11 trunk 1.0.0 1.0.0-alpha 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 All 191 releases
← All changes | classes/Withdraw.php +1 -3 trunk3.9.15 View file →
@@ -11,9 +11,8 @@
11 11 namespace TUTOR;
12 12
13 13 use Exception;
14 14 use Tutor\Models\WithdrawModel;
15 -use Tutor\Traits\JsonResponse;
16 15
17 16 if ( ! defined( 'ABSPATH' ) ) {
18 17 exit;
19 18 }
@@ -23,9 +22,8 @@
23 22 *
24 23 * @since 1.0.0
25 24 */
26 25 class Withdraw {
27 - use JsonResponse;
28 26
29 27 /**
30 28 * Withdraw method
31 29 *
@@ -253,9 +251,9 @@
253 251 );
254 252 }
255 253
256 254 try {
257 - $withdraw_amount = (float) Input::post( 'amount' );
255 + $withdraw_amount = (float) Input::post( 'tutor_withdraw_amount' );
258 256 $earning_summary = WithdrawModel::get_withdraw_summary( $user_id );
259 257 $min_withdraw = (float) tutor_utils()->get_option( 'min_withdraw_amount' );
260 258
261 259 if ( ( $earning_summary->total_pending + $withdraw_amount ) > $earning_summary->available_for_withdraw ) {