diff --git a/assets/php/utils.php b/assets/php/utils.php index b5e2ad1..874ba6a 100644 --- a/assets/php/utils.php +++ b/assets/php/utils.php @@ -297,7 +297,7 @@ function get_users_cupboards_array() $sql = "SELECT id, name, description, public_id - FROM products WHERE owner_id = :owner_id;"; + FROM cupboards WHERE owner_id = :owner_id;"; $query = $PDO->prepare($sql); $query->bindValue(":owner_id", get_user_info_from_session_id("id"));