tw: fix array_pop arg (close #720)

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/743/head
Varun Patil 2023-07-03 12:02:52 -07:00
parent 906f6594bb
commit 9d9ef6654e
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ trait TimelineWritePlaces
$rows = \OC::$server->get(\OCA\Memories\Service\Places::class)->queryPoint($lat, $lon); $rows = \OC::$server->get(\OCA\Memories\Service\Places::class)->queryPoint($lat, $lon);
// Get last ID, i.e. the ID with highest admin_level but <= 8 // Get last ID, i.e. the ID with highest admin_level but <= 8
$markRow = array_pop(array_filter($rows, fn ($row) => $row['admin_level'] <= 8)); $crows = array_filter($rows, fn ($row) => $row['admin_level'] <= 8);
$markRow = array_pop($crows);
// Insert records in transaction // Insert records in transaction
$this->connection->beginTransaction(); $this->connection->beginTransaction();