We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit eede2f5b authored by clint's avatar clint

use exception

parent a27d5fa6
......@@ -27,11 +27,12 @@ header('Content-type: text/html; charset=utf-8');
try {
$res = $adodb->GetAll("SELECT name, artist_name, image, artwork_license FROM Album WHERE artwork_license IS NULL LIMIT 5000");
if(!$res) {
die("sql error");
catch (exception $e) {
foreach($res as &$row) {
echo "<img width=50 src=" . go_get_album_art($row['artist_name'], $row['name']) ." />&nbsp;";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment