Completed
Push — master ( 3ff0dd...85f73b )
by Stiofan
15s
created
templates/wpinv-invoice-history.php 1 patch
Braces   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -94,12 +94,13 @@
 block discarded – undo
94 94
 			$big = 999999;
95 95
             $wpinv_cpt = $_REQUEST['wpinv-cpt'];
96 96
 
97
-            if (get_query_var('paged') && 'wpi_invoice' == $wpinv_cpt)
98
-                $current_page = get_query_var('paged');
99
-            elseif (get_query_var('page') && 'wpi_invoice' == $wpinv_cpt)
100
-                $current_page = get_query_var('page');
101
-            else
102
-                $current_page = 1;
97
+            if (get_query_var('paged') && 'wpi_invoice' == $wpinv_cpt) {
98
+                            $current_page = get_query_var('paged');
99
+            } elseif (get_query_var('page') && 'wpi_invoice' == $wpinv_cpt) {
100
+                            $current_page = get_query_var('page');
101
+            } else {
102
+                            $current_page = 1;
103
+            }
103 104
 
104 105
 			echo paginate_links( array(
105 106
 				'base'    => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
Please login to merge, or discard this patch.