Made use unused variable and removed else

This commit is contained in:
Khan M Rashedun-Naby 2018-06-07 21:45:03 +06:00
parent ba8e866bf1
commit c773b9cb4c
1 changed files with 1 additions and 3 deletions

View File

@ -53,7 +53,7 @@ class WC_Privacy_Exporters {
* @return array An array of personal data in name value pairs
*/
public static function order_data_exporter( $email_address, $page ) {
$done = false;
$done = true;
$page = (int) $page;
$user = get_user_by( 'email', $email_address ); // Check if user has an ID in the DB to load stored personal data.
$data_to_export = array();
@ -79,8 +79,6 @@ class WC_Privacy_Exporters {
);
}
$done = 10 > count( $orders );
} else {
$done = true;
}
return array(