diff options
author | zotlabs <mike@macgirvin.com> | 2017-02-07 20:29:03 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-02-07 20:29:03 -0800 |
commit | 30659aef5062a5e6a4ef94f63f8bbb2f89fb3965 (patch) | |
tree | d78123fb3fa5157f2b66fa069f9f087ae63ac936 /Zotlabs/Lib/Permcat.php | |
parent | 46d0e23e7bcb3bb1d000bae8dea7e52d4a1d018f (diff) | |
download | volse-hubzilla-30659aef5062a5e6a4ef94f63f8bbb2f89fb3965.tar.gz volse-hubzilla-30659aef5062a5e6a4ef94f63f8bbb2f89fb3965.tar.bz2 volse-hubzilla-30659aef5062a5e6a4ef94f63f8bbb2f89fb3965.zip |
initial permcat creation ability, in /settings/permcats; functional permcat creation for testing but still needs a lot of UX work before promoting the ability
Diffstat (limited to 'Zotlabs/Lib/Permcat.php')
-rw-r--r-- | Zotlabs/Lib/Permcat.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Permcat.php b/Zotlabs/Lib/Permcat.php index 525e55091..032257be6 100644 --- a/Zotlabs/Lib/Permcat.php +++ b/Zotlabs/Lib/Permcat.php @@ -90,7 +90,8 @@ class Permcat { ); if($x) { foreach($x as $xv) { - $permcats[] = [ $xv['k'], $xv['k'], $xv['v'] ]; + $value = ((preg_match('|^a:[0-9]+:{.*}$|s', $xv['v'])) ? unserialize($xv['v']) : $xv['v']); + $permcats[] = [ $xv['k'], $xv['k'], $value ]; } } } |