diff --git a/admin/class-recursivetable.php b/admin/class-recursivetable.php index 7b38311..279905e 100644 --- a/admin/class-recursivetable.php +++ b/admin/class-recursivetable.php @@ -185,6 +185,7 @@ ); // Sort column validation. + $order = $order ?? $default_order; $orderby = isset( $allowed_orderby[ $orderby ] ) ? $orderby : $default_orderby; $order = in_array( strtoupper( $order ), array( 'ASC', 'DESC' ), true ) ? strtoupper( $order ) : $default_order;