diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-07-21 19:16:28 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-07-21 19:16:28 +0000 |
| commit | de2d6648c48b35630a4c3cd700a3903a1e0d91c5 (patch) | |
| tree | 504dac0e99234b9883dd861bfacdc7c715ba176d /modules_v3 | |
| parent | 04059d01ba73a2f5ee54a5bd91f7c6ee2dbb995b (diff) | |
| download | webtrees-de2d6648c48b35630a4c3cd700a3903a1e0d91c5.tar.gz webtrees-de2d6648c48b35630a4c3cd700a3903a1e0d91c5.tar.bz2 webtrees-de2d6648c48b35630a4c3cd700a3903a1e0d91c5.zip | |
PHP error in lightbox tab
Diffstat (limited to 'modules_v3')
| -rw-r--r-- | modules_v3/lightbox/module.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules_v3/lightbox/module.php b/modules_v3/lightbox/module.php index 70a9b81acf..c5d905c125 100644 --- a/modules_v3/lightbox/module.php +++ b/modules_v3/lightbox/module.php @@ -68,7 +68,7 @@ class lightbox_WT_Module extends WT_Module implements WT_Module_Tab { preg_match_all('/(?:^1|\n\d) OBJE @(' . WT_REGEX_XREF . ')@/', $fact->getGedcom(), $matches); foreach ($matches[1] as $match) { $media = WT_Media::getInstance($match); - if ($media->canShow()) { + if ($media && $media->canShow()) { $media_list[] = array('fact' => $fact, 'media' => $media); } } |
