mirror of https://github.com/rusefi/msqur.git
Fix viewing cached msq
This commit is contained in:
parent
7f473e167c
commit
2243d8e8e7
|
@ -173,8 +173,12 @@ class Msqur
|
|||
$html = $e->getHTMLMessage();
|
||||
} finally {
|
||||
return $html;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
error("Null xml");
|
||||
}
|
||||
} else {
|
||||
return $html;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ require "msqur.php";
|
|||
|
||||
if (isset($_GET['msq'])) {
|
||||
$id = $_GET['msq']; //TODO Sanitize
|
||||
$html = $msqur->view($_GET['msq']);
|
||||
$html = $msqur->view($id);
|
||||
if ($html !== null) {
|
||||
include "view/header.php";
|
||||
echo $html;
|
||||
|
|
Loading…
Reference in New Issue