included author in get_posts output

This commit is contained in:
Václav Šmejkal 2024-05-24 19:04:31 +02:00
parent 6d0fd13ea5
commit 97555013a1
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -15,7 +15,7 @@ if ($out -> num_rows != 1)
return;
}
$out = $database -> query("SELECT title, description, photo_id FROM post ORDER BY id DESC");
$out = $database -> query("SELECT title, description, photo_id, author FROM post ORDER BY id DESC");
$output = array();