[open-ils-commits] r11871 - branches/rel_1_4/Open-ILS/src/c-apps

svn at svn.open-ils.org svn at svn.open-ils.org
Sat Jan 17 11:53:47 EST 2009


Author: miker
Date: 2009-01-17 11:53:45 -0500 (Sat, 17 Jan 2009)
New Revision: 11871

Modified:
   branches/rel_1_4/Open-ILS/src/c-apps/oils_cstore.c
Log:
reversed logic ... DOH

Modified: branches/rel_1_4/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- branches/rel_1_4/Open-ILS/src/c-apps/oils_cstore.c	2009-01-17 16:40:34 UTC (rev 11870)
+++ branches/rel_1_4/Open-ILS/src/c-apps/oils_cstore.c	2009-01-17 16:53:45 UTC (rev 11871)
@@ -2341,10 +2341,9 @@
 
             if (locale) {
         		char* i18n = osrfHashGet(field, "i18n");
-			    if ( !(
-                        jsonBoolIsTrue( jsonObjectGetKey( order_hash, "no_i18n" ) ) ||
-                        ((int)jsonObjectGetNumber(jsonObjectGetKey( order_hash, "no_i18n" ))) == 1 // support 1/0 for perl's sake
-                     )
+			    if ( 
+                    jsonBoolIsTrue( jsonObjectGetKey( order_hash, "no_i18n" ) ) ||
+                    ((int)jsonObjectGetNumber(jsonObjectGetKey( order_hash, "no_i18n" ))) == 1 // support 1/0 for perl's sake
                 ) i18n = NULL;
 
     			if ( i18n && !strncasecmp("true", i18n, 4)) {



More information about the open-ils-commits mailing list