mirror of
https://github.com/processwire/processwire.git
synced 2025-08-06 14:57:10 +02:00
Fix issue processwire/processwire-issues#1916
This commit is contained in:
committed by
Ryan Cramer
parent
f1819b5cd8
commit
8d2ad63ce7
@@ -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();
|
||||
|
Reference in New Issue
Block a user