fixes next and prev

This commit is contained in:
jkhsjdhjs 2016-08-17 21:16:56 +02:00
parent c51e8f98f3
commit 74acf538d1

View File

@ -261,9 +261,9 @@ http.createServer((req, res) => {
data.usernetwork = e.usernetwork;
if(rows[1].length)
data.next = rows[1].id;
data.next = rows[1][0].id;
if(rows[2].length)
data.prev = rows[2].id;
data.prev = rows[2][0].id;
}
res.writeHead(200, { 'Content-Type': 'text/html' });
res.end(tpl(data), 'utf-8');