Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-12-10 08:39:25 +0300
committermattab <matthieu.aubry@gmail.com>2014-12-10 08:39:25 +0300
commit2727947cb009ba4c105d3cc033266bb12cf3b2ff (patch)
treedb022a93a1040d220a18cd91a3d674d699daad56 /core/DataTable
parent8b094d74f9a12d6fd575af42a8690aeddacc0432 (diff)
Make sure not to fail in getSubtable()
Diffstat (limited to 'core/DataTable')
-rw-r--r--core/DataTable/Row.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/DataTable/Row.php b/core/DataTable/Row.php
index c6c0d21e9f..0e7d329d77 100644
--- a/core/DataTable/Row.php
+++ b/core/DataTable/Row.php
@@ -317,7 +317,11 @@ class Row implements \ArrayAccess, \IteratorAggregate
public function getSubtable()
{
if ($this->isSubtableLoaded()) {
- return Manager::getInstance()->getTable($this->getIdSubDataTable());
+ try {
+ return Manager::getInstance()->getTable($this->getIdSubDataTable());
+ } catch(TableNotFoundException $e) {
+ // edge case
+ }
}
return false;
}