summaryrefslogtreecommitdiff
path: root/admin_pgv_to_wt.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2018-01-15 21:10:12 +0000
committerGreg Roach <fisharebest@gmail.com>2018-01-15 21:30:41 +0000
commit9c9b27332c1c36b978b458f9033e965426c15ad5 (patch)
tree9288d901d89a7795abb6a4ac8df026d7f3b960b2 /admin_pgv_to_wt.php
parent65f41454eb350f7b53407eeeeb060e535a0e4ec1 (diff)
downloadwebtrees-9c9b27332c1c36b978b458f9033e965426c15ad5.tar.gz
webtrees-9c9b27332c1c36b978b458f9033e965426c15ad5.tar.bz2
webtrees-9c9b27332c1c36b978b458f9033e965426c15ad5.zip
PHP7 - use Throwable class
Diffstat (limited to 'admin_pgv_to_wt.php')
-rw-r--r--admin_pgv_to_wt.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/admin_pgv_to_wt.php b/admin_pgv_to_wt.php
index a528024f78..2b4caf8395 100644
--- a/admin_pgv_to_wt.php
+++ b/admin_pgv_to_wt.php
@@ -18,6 +18,7 @@ namespace Fisharebest\Webtrees;
use Fisharebest\Webtrees\Controller\PageController;
use PDO;
use PDOException;
+use Throwable;
/** @global Tree $WT_TREE */
global $WT_TREE;
@@ -567,7 +568,7 @@ if ($PGV_SCHEMA_VERSION >= 12) {
)->execute([$setting->user_id, $tree->getTreeId(), 'gedcomid', $value]);
}
}
- } catch (\ErrorException $ex) {
+ } catch (Throwable $ex) {
DebugBar::addThrowable($ex);
// Invalid serialized data?
@@ -583,7 +584,7 @@ if ($PGV_SCHEMA_VERSION >= 12) {
)->execute([$setting->user_id, $tree->getTreeId(), 'rootid', $value]);
}
}
- } catch (\ErrorException $ex) {
+ } catch (Throwable $ex) {
DebugBar::addThrowable($ex);
// Invalid serialized data?
@@ -599,7 +600,7 @@ if ($PGV_SCHEMA_VERSION >= 12) {
)->execute([$setting->user_id, $tree->getTreeId(), 'canedit', $value]);
}
}
- } catch (\ErrorException $ex) {
+ } catch (Throwable $ex) {
DebugBar::addThrowable($ex);
// Invalid serialized data?