diff --git a/assets/php/utils.php b/assets/php/utils.php index 19c8ce6..ab2af50 100644 --- a/assets/php/utils.php +++ b/assets/php/utils.php @@ -285,7 +285,7 @@ function get_users_products_array() cupboards.description AS cupboard_description, expiration_date, added_date FROM products - INNER JOIN cupboards ON products.cupboard_id = cupboards.id + LEFT JOIN cupboards ON products.cupboard_id = cupboards.id WHERE products.owner_id = :owner_id;"; $query = $PDO->prepare($sql);