From: erickson Date: Fri, 15 Jul 2005 20:49:57 +0000 (+0000) Subject: moved back to nulls X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=59d78e0f2bff4471e183d00c2d86c36e033d4639;p=Evergreen.git moved back to nulls git-svn-id: svn://svn.open-ils.org/ILS/trunk@1221 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/OpenSRF/src/perlmods/JSON.pm b/OpenSRF/src/perlmods/JSON.pm index 9d6d8b4729..ece6bb03b8 100644 --- a/OpenSRF/src/perlmods/JSON.pm +++ b/OpenSRF/src/perlmods/JSON.pm @@ -176,8 +176,8 @@ sub perl2JSON { my $output = ''; if (!defined($perl)) { - $output = '' unless $strict; - $output = 'null' if $strict; + $output = '' if $strict; + $output = 'null' unless $strict; } elsif (ref($perl) and ref($perl) =~ /^JSON/) { $output .= $perl; } elsif ( ref($perl) && exists($_class_map{classes}{ref($perl)}) ) {