1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-06 14:57:10 +02:00
This commit is contained in:
matjazpotocnik
2025-01-05 11:48:54 -05:00
committed by Ryan Cramer
parent f1819b5cd8
commit 8d2ad63ce7

View File

@@ -639,14 +639,13 @@ class PagePathHistory extends WireData implements Module, ConfigurableModule {
}
$query->execute();
$rowCount = $query->rowCount();
$query->closeCursor();
} catch(\Exception $e) {
if(!$this->checkTableSchema()) throw $e;
$rowCount = 0;
$query = null;
}
if(!$rowCount || $query) return $result;
if(!$rowCount || !$query) return $result;
$rows = array();
$pathCounts = array();