This commit is contained in:
pezcurrel 2020-05-20 11:05:58 +02:00
parent 2e3ed0205b
commit 8ddf7a92bb

View file

@ -20,7 +20,7 @@ if (array_key_exists('act',$_GET) && $_GET['act']=='markread' && array_key_exist
} elseif (array_key_exists('act',$_GET) && $_GET['act']=='loadchunk' && array_key_exists('chunk',$_GET) && preg_match('/^[0-9]+$/',$_GET['chunk'])===1) {
$_GET['chunk']+=0;
$chunksize=20; // questo dev'essere uguale in include/notifs.php
$res=mysqli_query($link,'SELECT * FROM Notifications WHERE Deleted = 0 ORDER BY Microtime DESC LIMIT '.($_GET['chunk']*$chunksize).','.$chunksize)
$res=mysqli_query($link,'SELECT * FROM Notifications WHERE Deleted=0 ORDER BY Microtime DESC LIMIT '.($_GET['chunk']*$chunksize).','.$chunksize)
or muoribene(mysqli_error($link),true);
$buf=array();
while ($row=mysqli_fetch_assoc($res)) {