reversed logic ... DOH
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 17 Jan 2009 17:04:27 +0000 (17:04 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 17 Jan 2009 17:04:27 +0000 (17:04 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11872 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index a19c6ff..cf56c8c 100644 (file)
@@ -2849,10 +2849,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)) {