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

View File

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