fixed the 'get_cupboards_as_array

This commit is contained in:
Louis Vallat 2019-11-10 15:54:39 +01:00
parent 0283fb1bc5
commit 346f9c6743

View File

@ -297,7 +297,7 @@ function get_users_cupboards_array()
$sql = "SELECT $sql = "SELECT
id, name, description, public_id id, name, description, public_id
FROM products WHERE owner_id = :owner_id;"; FROM cupboards WHERE owner_id = :owner_id;";
$query = $PDO->prepare($sql); $query = $PDO->prepare($sql);
$query->bindValue(":owner_id", get_user_info_from_session_id("id")); $query->bindValue(":owner_id", get_user_info_from_session_id("id"));