mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 07:47:00 +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();
|
$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();
|
||||||
|
Reference in New Issue
Block a user