diff options
author | mark <mark> | 2011-11-10 21:00:12 +0000 |
---|---|---|
committer | mark <mark> | 2011-11-10 21:00:12 +0000 |
commit | bf8ba5bcc6d128c3ab8e498723257ee54e1db0a7 (patch) | |
tree | cff69b2aa969f4003f55a4665a41b6a31908455e | |
parent | b94ed29118969c5e2b50de7d3316c98d0c29e800 (diff) |
silence warning
-rw-r--r-- | FS/FS/UI/Web.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index 40abdc4a1..1cc539a9f 100644 --- a/FS/FS/UI/Web.pm +++ b/FS/FS/UI/Web.pm @@ -655,7 +655,9 @@ sub job_status { } #to_json(\@return); #waiting on deb 5.0 for new JSON.pm? - objToJson(\@return); + #silence the warning though + my $to_json = JSON->can('to_json') || JSON->can('objToJson'); + &$to_json(\@return); } |