Fixed a bug by extending the query used for loading instances to be checked (it wasn’t considering new instances, now it should)

This commit is contained in:
pezcurrel 2024-02-26 18:40:10 +01:00
parent 1c1d9fb095
commit 3feccffce0

View file

@ -240,7 +240,7 @@ if ($restore) {
$insts=[];
eecho(0,'loading instances from the database...'.N);
$res=myq($link,'SELECT URI FROM Instances WHERE LastOkCheckTS IS NOT NULL AND LastOkCheckTS>='.$graceline,__LINE__);
$res=myq($link,'SELECT URI FROM Instances WHERE (LastOkCheckTS IS NOT NULL AND LastOkCheckTS>='.$graceline.') OR (LastOkCheckTS IS NULL AND InsertTS>='.$graceline.')',__LINE__);
while($row=mysqli_fetch_assoc($res))
if (!in_array($row['URI'],$insts))
$insts[]=$row['URI'];