summaryrefslogtreecommitdiffstats
path: root/Kernel/Modules/AdminDefaultTo.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Modules/AdminDefaultTo.pm')
-rw-r--r--Kernel/Modules/AdminDefaultTo.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Modules/AdminDefaultTo.pm b/Kernel/Modules/AdminDefaultTo.pm
index 042c55c..e269516 100644
--- a/Kernel/Modules/AdminDefaultTo.pm
+++ b/Kernel/Modules/AdminDefaultTo.pm
@@ -76,7 +76,7 @@ sub Run {
}
# check needed data
- $Errors{ 'TitleInvalid' } = 'ServerError' if !$GetParam{Title};
+ $Errors{TitleInvalid} = 'ServerError' if !$GetParam{Title};
# check if a DefaultTo entry exist with this title
my $TitleExists = $Self->{DefaultToObject}->TitleExistsCheck(
@@ -86,7 +86,7 @@ sub Run {
if ($TitleExists) {
$Errors{TitleExists} = 1;
- $Errors{'TitleInvalid'} = 'ServerError';
+ $Errors{TitleInvalid} = 'ServerError';
}
# if no errors occurred
@@ -166,13 +166,13 @@ sub Run {
}
# check needed data
- $Errors{ 'TitleInvalid' } = 'ServerError' if !$GetParam{Title};
+ $Errors{TitleInvalid} = 'ServerError' if !$GetParam{Title};
# check if a DefaultTo entry exists with this title
my $TitleExists = $Self->{DefaultToObject}->TitleExistsCheck( Title => $GetParam{Title} );
if ($TitleExists) {
$Errors{TitleExists} = 1;
- $Errors{'TitleInvalid'} = 'ServerError';
+ $Errors{TitleInvalid} = 'ServerError';
}
# if no errors occurred