From 30659aef5062a5e6a4ef94f63f8bbb2f89fb3965 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 7 Feb 2017 20:29:03 -0800 Subject: initial permcat creation ability, in /settings/permcats; functional permcat creation for testing but still needs a lot of UX work before promoting the ability --- Zotlabs/Lib/Permcat.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Lib') 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 ]; } } } -- cgit v1.2.3