# HG changeset patch # User Michiel Broek # Date 1646515968 -3600 # Node ID 812ce4c5da2a85f42e24c466f07543c123d83930 # Parent 9f8ede1b209014ac9699e0896d09d32aca1fa74a Fixed all XML export modules skipping the first record. diff -r 9f8ede1b2090 -r 812ce4c5da2a www/export_equipments.php --- a/www/export_equipments.php Sat Mar 05 16:54:29 2022 +0100 +++ b/www/export_equipments.php Sat Mar 05 22:32:48 2022 +0100 @@ -13,7 +13,6 @@ } $result = mysqli_query($link, "SELECT * FROM inventory_equipments ORDER BY name"); -$row = mysqli_fetch_array($result); /* diff -r 9f8ede1b2090 -r 812ce4c5da2a www/export_hops.php --- a/www/export_hops.php Sat Mar 05 16:54:29 2022 +0100 +++ b/www/export_hops.php Sat Mar 05 22:32:48 2022 +0100 @@ -13,7 +13,6 @@ } $result = mysqli_query($link, "SELECT * FROM inventory_hops ORDER BY origin,name"); -$row = mysqli_fetch_array($result); $hoptype = array( 'Bittering', 'Aroma', 'Both' ); diff -r 9f8ede1b2090 -r 812ce4c5da2a www/export_mashs.php --- a/www/export_mashs.php Sat Mar 05 16:54:29 2022 +0100 +++ b/www/export_mashs.php Sat Mar 05 22:32:48 2022 +0100 @@ -13,7 +13,6 @@ } $result = mysqli_query($link, "SELECT * FROM profile_mash ORDER BY name"); -$row = mysqli_fetch_array($result); $mashsteptype = array( 'Infusion', 'Temperature', 'Decoction' ); diff -r 9f8ede1b2090 -r 812ce4c5da2a www/export_miscs.php --- a/www/export_miscs.php Sat Mar 05 16:54:29 2022 +0100 +++ b/www/export_miscs.php Sat Mar 05 22:32:48 2022 +0100 @@ -13,7 +13,6 @@ } $result = mysqli_query($link, "SELECT * FROM inventory_miscs ORDER BY name"); -$row = mysqli_fetch_array($result); $misctype = array( 'Spice', 'Herb', 'Flavor', 'Fining', 'Water agent', 'Yeast nutrient', 'Other' ); diff -r 9f8ede1b2090 -r 812ce4c5da2a www/export_styles.php --- a/www/export_styles.php Sat Mar 05 16:54:29 2022 +0100 +++ b/www/export_styles.php Sat Mar 05 22:32:48 2022 +0100 @@ -13,7 +13,6 @@ } $result = mysqli_query($link, "SELECT * FROM profile_styles ORDER BY style_guide,style_letter,name"); -$row = mysqli_fetch_array($result); $styletype = array( 'Lager', 'Ale', 'Mead', 'Wheat', 'Mixed', 'Cider' ); diff -r 9f8ede1b2090 -r 812ce4c5da2a www/export_suppliers.php --- a/www/export_suppliers.php Sat Mar 05 16:54:29 2022 +0100 +++ b/www/export_suppliers.php Sat Mar 05 22:32:48 2022 +0100 @@ -13,7 +13,6 @@ } $result = mysqli_query($link, "SELECT * FROM inventory_suppliers ORDER BY name"); -$row = mysqli_fetch_array($result); diff -r 9f8ede1b2090 -r 812ce4c5da2a www/export_waters.php --- a/www/export_waters.php Sat Mar 05 16:54:29 2022 +0100 +++ b/www/export_waters.php Sat Mar 05 22:32:48 2022 +0100 @@ -13,7 +13,6 @@ } $result = mysqli_query($link, "SELECT * FROM inventory_waters ORDER BY name"); -$row = mysqli_fetch_array($result); diff -r 9f8ede1b2090 -r 812ce4c5da2a www/export_yeasts.php --- a/www/export_yeasts.php Sat Mar 05 16:54:29 2022 +0100 +++ b/www/export_yeasts.php Sat Mar 05 22:32:48 2022 +0100 @@ -13,7 +13,6 @@ } $result = mysqli_query($link, "SELECT * FROM inventory_yeasts ORDER BY laboratory,product_id,name"); -$row = mysqli_fetch_array($result); function field($x, $field, $value) { xmlwriter_start_element($x, $field);