Fix viewing cached msq

This commit is contained in:
Nick 2019-11-08 09:19:05 -06:00
parent 7f473e167c
commit 2243d8e8e7
2 changed files with 6 additions and 2 deletions

View File

@ -173,8 +173,12 @@ class Msqur
$html = $e->getHTMLMessage(); $html = $e->getHTMLMessage();
} finally { } finally {
return $html; return $html;
} }
} else {
error("Null xml");
} }
} else {
return $html;
} }
} }

View File

@ -19,7 +19,7 @@ require "msqur.php";
if (isset($_GET['msq'])) { if (isset($_GET['msq'])) {
$id = $_GET['msq']; //TODO Sanitize $id = $_GET['msq']; //TODO Sanitize
$html = $msqur->view($_GET['msq']); $html = $msqur->view($id);
if ($html !== null) { if ($html !== null) {
include "view/header.php"; include "view/header.php";
echo $html; echo $html;