1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-08 07:47:00 +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(); $query->execute();
$rowCount = $query->rowCount(); $rowCount = $query->rowCount();
$query->closeCursor();
} catch(\Exception $e) { } catch(\Exception $e) {
if(!$this->checkTableSchema()) throw $e; if(!$this->checkTableSchema()) throw $e;
$rowCount = 0; $rowCount = 0;
$query = null; $query = null;
} }
if(!$rowCount || $query) return $result; if(!$rowCount || !$query) return $result;
$rows = array(); $rows = array();
$pathCounts = array(); $pathCounts = array();