mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-03-13 05:51:46 +00:00
fix post index receiving
This commit is contained in:
parent
0b3d0d65bc
commit
22180cb4b3
@ -11,9 +11,8 @@ if (isset($_SESSION['userName'])) {
|
||||
$postK = 1;
|
||||
|
||||
if ($userPosts = $_twister->getPosts([$_SESSION['userName']], 1)) {
|
||||
|
||||
if (isset($userPosts[0]['k'])) {
|
||||
$postK = Filter::int($userPosts[0]['k']) + 1;
|
||||
if (isset($userPosts[0]['userpost']['k'])) {
|
||||
$postK = Filter::int($userPosts[0]['userpost']['k']) + 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user