Cleanup downloads

This commit is contained in:
Nick 2019-11-07 16:53:52 -06:00
parent 895a3c9b54
commit f661437fa9
2 changed files with 1 additions and 5 deletions

View File

@ -297,7 +297,6 @@ class DB
public function getMSQForDownload($id)
{
if (!$this->connect()) return null;
$xml = FALSE;
@ -312,12 +311,10 @@ class DB
$result = $st->fetch(PDO::FETCH_ASSOC);
$st->closeCursor();
$xml = $result['xml'];
if (DEBUG) debug('Cached, returning HTML.');
}
else
{
echo "<div class=\"debug\">No result for $id</div>";
echo '<div class="error">Invalid MSQ err 2</div>';
echo "404 no such MSQ";
return null;
}
}

View File

@ -45,7 +45,6 @@ class Msqur
public function getMSQForDownload($id)
{
return $this->db->getMSQForDownload($id);
}