← All changes
|
stripe/controllers/FrmTransLiteEntriesController.php
+4
-2
6.5.2
→
trunk
View file →
| @@ -8,15 +8,15 @@ | ||
| 8 | 8 | /** |
| 9 | 9 | * Include payment details in the entry sidebar. |
| 10 | 10 | * |
| 11 | 11 | * @param stdClass $entry |
| 12 | + * | |
| 12 | 13 | * @return void |
| 13 | 14 | */ |
| 14 | 15 | public static function sidebar_list( $entry ) { |
| 15 | 16 | // This line removes PayPal actions from the entries sidebar. |
| 16 | 17 | remove_action( 'frm_show_entry_sidebar', 'FrmPaymentsController::sidebar_list' ); |
| 17 | - | |
| 18 | - add_action( 'frm_entry_shared_sidebar_middle', __CLASS__ . '::show_sidebar_list' ); | |
| 18 | + add_action( 'frm_entry_shared_sidebar_middle', self::class . '::show_sidebar_list' ); | |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * Show the payment details in the entry sidebar. |
| @@ -21,13 +21,15 @@ | ||
| 21 | 21 | /** |
| 22 | 22 | * Show the payment details in the entry sidebar. |
| 23 | 23 | * |
| 24 | 24 | * @param stdClass $entry |
| 25 | + * | |
| 25 | 26 | * @return void |
| 26 | 27 | */ |
| 27 | 28 | public static function show_sidebar_list( $entry ) { |
| 28 | 29 | $frm_payment = new FrmTransLitePayment(); |
| 29 | 30 | $payments = $frm_payment->get_all_for_entry( $entry->id ); |
| 31 | + | |
| 30 | 32 | if ( ! $payments ) { |
| 31 | 33 | return; |
| 32 | 34 | } |
| 33 | 35 | |