summaryrefslogtreecommitdiff
path: root/FS/FS/UI
diff options
context:
space:
mode:
authormark <mark>2011-11-10 21:00:02 +0000
committermark <mark>2011-11-10 21:00:02 +0000
commitcfbfa38f73888ee2c073ad7500c1fe147cde1c81 (patch)
treed324e1f4af91deb7d2d40f22fdb3ec8131de9da0 /FS/FS/UI
parente932b43a69516f3485483001a397b33788cf8eb1 (diff)
silence warning
Diffstat (limited to 'FS/FS/UI')
-rw-r--r--FS/FS/UI/Web.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm
index 40abdc4..1cc539a 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);
}