reversed logic ... DOH
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 17 Jan 2009 16:53:45 +0000 (16:53 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 17 Jan 2009 16:53:45 +0000 (16:53 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@11871 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/c-apps/oils_cstore.c

index 98cbec4..00e0a7c 100644 (file)
@@ -2341,10 +2341,9 @@ static char* buildSELECT ( jsonObject* search_hash, jsonObject* order_hash, osrf
 
             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)) {