Exporter: catch improbable error condition
This commit is contained in:
parent
079e6e6514
commit
9015993b05
|
@ -203,6 +203,8 @@ class Exporter
|
|||
$rows = $this->db->fetchAll($query);
|
||||
} elseif ($query instanceof SimpleQuery) {
|
||||
$rows = $query->fetchAll();
|
||||
} else {
|
||||
throw new RuntimeException('Table query needs to be either a Select or a SimpleQuery instance');
|
||||
}
|
||||
$services = [];
|
||||
foreach ($rows as $row) {
|
||||
|
|
Loading…
Reference in New Issue