summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/actions.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/actions.inc.php')
-rw-r--r--frontends/php/include/actions.inc.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/frontends/php/include/actions.inc.php b/frontends/php/include/actions.inc.php
index 57d74467..b808a249 100644
--- a/frontends/php/include/actions.inc.php
+++ b/frontends/php/include/actions.inc.php
@@ -31,11 +31,9 @@
function add_action( $triggerid, $userid, $good, $delay, $subject, $message, $scope, $severity, $recipient, $usrgrpid)
{
- global $ERROR_MSG;
-
if(!check_right_on_trigger("A",$triggerid))
{
- $ERROR_MSG="Insufficient permissions";
+ error("Insufficient permissions");
return 0;
}