num_rows != 1) throw_http_error(404, 'Not Found', 'No logs found for this package.'); $result = $result -> fetch_assoc(); redirect_temporarily('https://buildmaster.archlinux32.org/build-logs/error/' . $result['log_file']);