# phpBB importer fails to consider empty table prefix correctly

**URL:** https://meta.discourse.org/t/phpbb-importer-fails-to-consider-empty-table-prefix-correctly/47087
**Category:** Bug
**Created:** [2016年七月11日 11:48 UTC](https://meta.discourse.org/t/phpbb-importer-fails-to-consider-empty-table-prefix-correctly/47087 "2016-07-11T11:48:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![palant](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/palant/32/104531_2.png) [@palant](https://meta.discourse.org/u/palant)
#### Post date: [2016年七月11日 11:48 UTC](https://meta.discourse.org/t/phpbb-importer-fails-to-consider-empty-table-prefix-correctly/47087/1 "2016-07-11T11:48:32Z")

</div>

phpBB allows empty table prefixes, the table will be named something like `users` rather than `phpbb_users` then. The importer currently fails to consider this scenario right now - if you leave the table prefix empty then it will expect a table named `_users`.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016年七月11日 19:28 UTC](https://meta.discourse.org/t/phpbb-importer-fails-to-consider-empty-table-prefix-correctly/47087/2 "2016-07-11T19:28:00Z")

</div>

Sure @techapj can you add code to handle this case?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [2016年七月11日 21:56 UTC](https://meta.discourse.org/t/phpbb-importer-fails-to-consider-empty-table-prefix-correctly/47087/3 "2016-07-11T21:56:04Z")

</div>

I just submitted a PR with a few small changes to the phpBB3 importer and I included a fix for this issue.

[https://github.com/discourse/discourse/pull/4321](https://github.com/discourse/discourse/pull/4321)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2016年七月12日 00:17 UTC](https://meta.discourse.org/t/phpbb-importer-fails-to-consider-empty-table-prefix-correctly/47087/4 "2016-07-12T00:17:55Z")

</div>


