diff options
| author | Greg Roach <fisharebest@gmail.com> | 2013-10-27 22:07:23 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2013-10-27 22:07:47 +0000 |
| commit | c6e5f8d746ef505290cf20f1bd8e1d6c7d94998a (patch) | |
| tree | 08ee200613ce4716afffe8f485cc5563cccd61e8 /modules_v3 | |
| parent | 516d5639474527e297fc446af9d1edf1657744fe (diff) | |
| download | webtrees-c6e5f8d746ef505290cf20f1bd8e1d6c7d94998a.tar.gz webtrees-c6e5f8d746ef505290cf20f1bd8e1d6c7d94998a.tar.bz2 webtrees-c6e5f8d746ef505290cf20f1bd8e1d6c7d94998a.zip | |
#1245170 - Cannot add a FAQ entry to all Gedcoms
Diffstat (limited to 'modules_v3')
| -rw-r--r-- | modules_v3/faq/module.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules_v3/faq/module.php b/modules_v3/faq/module.php index a58d19fe5d..a1e8588426 100644 --- a/modules_v3/faq/module.php +++ b/modules_v3/faq/module.php @@ -102,7 +102,7 @@ class faq_WT_Module extends WT_Module implements WT_Module_Menu, WT_Module_Block $block_id = WT_Filter::postInteger('block_id'); if ($block_id) { WT_DB::prepare( - "UPDATE `##block` SET gedcom_id=NULLIF(?, ''), block_order=? WHERE block_id=?" + "UPDATE `##block` SET gedcom_id=NULLIF(?, '0'), block_order=? WHERE block_id=?" )->execute(array( WT_Filter::postInteger('gedcom_id'), WT_Filter::postInteger('block_order'), @@ -110,7 +110,7 @@ class faq_WT_Module extends WT_Module implements WT_Module_Menu, WT_Module_Block )); } else { WT_DB::prepare( - "INSERT INTO `##block` (gedcom_id, module_name, block_order) VALUES (NULLIF(?, ''), ?, ?)" + "INSERT INTO `##block` (gedcom_id, module_name, block_order) VALUES (NULLIF(?, '0'), ?, ?)" )->execute(array( WT_Filter::postInteger('gedcom_id'), $this->getName(), |
