From 1f5e3ffcad0aa3cdd70b1acc3ce757827d1a0f62 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Fri, 15 Feb 2008 18:05:49 +0000 Subject: [PATCH] faulty ref check --- docs/changelog/7.x.x.txt | 2 ++ lib/WebGUI/Workflow/Cron.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 0789dca4e..fbd44e862 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,5 +1,7 @@ 7.5.3 - prevent HTML and Macro injection in usernames + - Fixed a problem that caused all Cron job parameters to return an empty hash + ref. 7.5.2 - add: Auth modules now accept a "returnUrl" form parameter when logging in diff --git a/lib/WebGUI/Workflow/Cron.pm b/lib/WebGUI/Workflow/Cron.pm index ecbb459d3..0adf3a049 100644 --- a/lib/WebGUI/Workflow/Cron.pm +++ b/lib/WebGUI/Workflow/Cron.pm @@ -116,7 +116,7 @@ sub get { my $self = shift; my $name = shift; if ($name eq "parameters") { - if (exists $self->{_data}{parameters} and ref($self->{_data}{parameters}) eq 'HASH' ) { + if (exists $self->{_data}{parameters}) { my $parameters = JSON::from_json($self->{_data}{$name}); return $parameters->{parameters}; }