Skip to content

Commit

Permalink
Merge pull request #186 from vanilla/fix/signature-for-punbb
Browse files Browse the repository at this point in the history
Fix signature query in PunBB package
  • Loading branch information
vincentlam92 authored Nov 11, 2019
2 parents 0dd984a + 17b5853 commit ec495d4
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions packages/punbb.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,30 @@ protected function forumExport($ex) {

// Signatures.
$ex->exportTable('UserMeta', "
SELECT
id,
'Plugin.Signatures.Sig' AS Name,
signature
FROM :_users u
WHERE u.signature IS NOT NULL", array('id ' => 'UserID', 'signature' => 'Value'));
select
u.id as UserID,
'Plugin.Signatures.Format' AS Name,
'BBCode' as Value
from
:_users u
where
u.signature is not null
and
u.signature != ''
union
select
u.id as UserID,
'Plugin.Signatures.Sig' AS Name,
signature as Value
from
:_users u
where
u.signature is not null
and
u.signature !=''
");


// Category.
Expand Down

0 comments on commit ec495d4

Please sign in to comment.