Skip to content

Commit

Permalink
Bugfix 4.0.5: Proof of play (#2186)
Browse files Browse the repository at this point in the history
  • Loading branch information
ifarzana authored Oct 27, 2023
1 parent 9dfee2a commit 612190a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Storage/MongoDbTimeSeriesStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ public function addStatFinalize()
try {
$cursor = $collectionPeriod->findOne(['name' => 'period']);

if (count($cursor) <= 0) {
if ($cursor === null) {
$this->log->error('Period collection does not exist in Mongo DB.');
// Period collection created
$collectionPeriod->insertOne(['name' => 'period']);
Expand Down

0 comments on commit 612190a

Please sign in to comment.