fix: back arrow redirects to invalid page with < 10 records

#327
This commit is contained in:
Martin Ambrus
2017-11-26 22:42:44 +01:00
parent 3c13f3597b
commit 1d4f980871
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -43,7 +43,7 @@
else if(count($message->sent1) > $_GET['s']+10) {
echo "&laquo;<a href=\"?t=2&s=".($_GET['s']+10)."&o=".(!empty($_GET['o']) ? $_GET['o'] : 0)."\">&raquo;</a>";
}
else {
else if (count($message->sent1) > 10) {
echo "<a href=\"?t=2&s=".($_GET['s']-10)."&o=".(!empty($_GET['o']) ? $_GET['o'] : 0)."\">&laquo;</a>&raquo;";
}
}