aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 48336727f0..a676a717ff 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3012,7 +3012,7 @@ class bitfield
function bitfield($bitfield = '')
{
- $this->data = $bitfield;
+ $this->data = base64_decode($bitfield);
}
/**
@@ -3072,6 +3072,11 @@ class bitfield
return $this->data;
}
+ function get_base64()
+ {
+ return base64_encode($this->data);
+ }
+
function get_bin()
{
$bin = '';