From e1fd18649af63a125916f6533e4aa2630409b80d Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 13 Nov 2008 20:21:21 +0000 Subject: [PATCH] safer version of previous update git-svn-id: svn://svn.open-ils.org/ILS/trunk@11172 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/c-apps/oils_cstore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/c-apps/oils_cstore.c b/Open-ILS/src/c-apps/oils_cstore.c index f7f05d5854..d4c194c195 100644 --- a/Open-ILS/src/c-apps/oils_cstore.c +++ b/Open-ILS/src/c-apps/oils_cstore.c @@ -1955,7 +1955,7 @@ static char* SELECT ( if ( !jsonBoolIsTrue( jsonObjectGetKey( selfield, "aggregate" ) ) || - ((int)jsonObjectGetNumber(jsonObjectGetKey( selfield, "aggregate" ))) == 0 // support 1/0 for perl's sake + !(((int)jsonObjectGetNumber(jsonObjectGetKey( selfield, "aggregate" ))) == 1) // support 1/0 for perl's sake ) { if (gfirst) { gfirst = 0; @@ -2326,7 +2326,7 @@ static char* buildSELECT ( jsonObject* search_hash, jsonObject* order_hash, osrf char* i18n = osrfHashGet(field, "i18n"); if ( !jsonBoolIsTrue( jsonObjectGetKey( order_hash, "no_i18n" ) ) || - ((int)jsonObjectGetNumber(jsonObjectGetKey( order_hash, "no_i18n" ))) == 0 // support 1/0 for perl's sake + !(((int)jsonObjectGetNumber(jsonObjectGetKey( order_hash, "no_i18n" ))) == 1) // support 1/0 for perl's sake ) i18n = NULL; if ( i18n && !strncasecmp("true", i18n, 4)) { -- 2.11.0