fixes next and prev
This commit is contained in:
parent
c51e8f98f3
commit
74acf538d1
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue
Block a user