aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Settings
diff options
context:
space:
mode:
authormrjive <mrjive@mrjive.it>2018-04-19 09:51:58 +0200
committerGitHub <noreply@github.com>2018-04-19 09:51:58 +0200
commitc8ff773b9609f723217712f0faf451238d41327d (patch)
tree4127afeee7d8a3b710863d9ad022fed2b82a8ebc /Zotlabs/Module/Settings
parent283e5d3a5c9557195a640de5f0acefc884e904bb (diff)
parent92b08f1f07a25976342dc885331ecb1531e256aa (diff)
downloadvolse-hubzilla-c8ff773b9609f723217712f0faf451238d41327d.tar.gz
volse-hubzilla-c8ff773b9609f723217712f0faf451238d41327d.tar.bz2
volse-hubzilla-c8ff773b9609f723217712f0faf451238d41327d.zip
Merge pull request #9 from redmatrix/dev
Dev
Diffstat (limited to 'Zotlabs/Module/Settings')
-rw-r--r--Zotlabs/Module/Settings/Permcats.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Module/Settings/Permcats.php b/Zotlabs/Module/Settings/Permcats.php
index 535399083..40641c3f2 100644
--- a/Zotlabs/Module/Settings/Permcats.php
+++ b/Zotlabs/Module/Settings/Permcats.php
@@ -19,6 +19,11 @@ class Permcats {
$all_perms = \Zotlabs\Access\Permissions::Perms();
$name = escape_tags(trim($_POST['name']));
+ if(! $name) {
+ notice( t('Permission Name is required.') . EOL);
+ return;
+ }
+
$pcarr = [];