aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-16 18:09:14 -0700
committerzotlabs <mike@macgirvin.com>2018-04-16 18:09:14 -0700
commit411b8e48a3acc7ce283555a8e7fe82c7eadecfd6 (patch)
tree8c9e0a4758da9c75ea080686c76364396592ce2e /Zotlabs
parentd38b5ed2f52526f9f50313d9123643be3d84842b (diff)
downloadvolse-hubzilla-411b8e48a3acc7ce283555a8e7fe82c7eadecfd6.tar.gz
volse-hubzilla-411b8e48a3acc7ce283555a8e7fe82c7eadecfd6.tar.bz2
volse-hubzilla-411b8e48a3acc7ce283555a8e7fe82c7eadecfd6.zip
don't save a permcat with empty name
Diffstat (limited to 'Zotlabs')
-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 = [];