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:
parent
1c1d9fb095
commit
3feccffce0
1 changed files with 1 additions and 1 deletions
|
@ -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'];
|
||||
|
|
Loading…
Reference in a new issue