[otrs-cvs] ITSMCore/Kernel/System Service.pm,1.37,1.38
"CVS commits notifications of OTRS.org" <[email protected]> Thu, 13 Jun 2013 08:48:02 +0000
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/ITSMCore/Kernel/System
In directory lancelot:/tmp/cvs-serv25372/Kernel/System
Modified Files:
Service.pm
Log Message:
Updated file to latest framework version.
Author: ub
Index: Service.pm
===================================================================
RCS file: /home/cvs/ITSMCore/Kernel/System/Service.pm,v
retrieving revision 1.37
retrieving revision 1.38
diff -2 -u -d -r1.37 -r1.38
--- Service.pm 23 Mar 2013 14:12:44 -0000 1.37
+++ Service.pm 13 Jun 2013 08:47:57 -0000 1.38
@@ -152,5 +152,5 @@
my $CacheKey = 'ServiceList::' . $Param{Valid};
my $Cache = $Self->{CacheInternalObject}->Get( Key => $CacheKey );
- return %{$Cache} if $Cache;
+ return %{$Cache} if ref $Cache eq 'HASH';
# ask database
@@ -483,5 +483,5 @@
# ---
my $Cache = $Self->{CacheInternalObject}->Get( Key => $CacheKey );
- return %{$Cache} if $Cache;
+ return %{$Cache} if ref $Cache eq 'HASH';
# get service from db
@@ -1111,8 +1111,8 @@
my $Cache = $Self->{CacheInternalObject}->Get( Key => $CacheKey );
if ( $Param{Result} eq 'HASH' ) {
- return %{$Cache} if $Cache;
+ return %{$Cache} if ref $Cache eq 'HASH';
}
else {
- return @{$Cache} if $Cache;
+ return @{$Cache} if ref $Cache eq 'ARRAY';
}
@@ -1309,5 +1309,5 @@
my $CacheKey = 'ServiceParentsGet::' . $Param{ServiceID};
my $Cache = $Self->{CacheInternalObject}->Get( Key => $CacheKey );
- return %{$Cache} if $Cache;
+ return $Cache if ref $Cache;
# get the list of services
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log