[open-ils-commits] r11172 - trunk/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Nov 13 15:21:24 EST 2008
Author: miker
Date: 2008-11-13 15:21:21 -0500 (Thu, 13 Nov 2008)
New Revision: 11172
Modified:
trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
safer version of previous update
Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-11-13 20:19:25 UTC (rev 11171)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-11-13 20:21:21 UTC (rev 11172)
@@ -1955,7 +1955,7 @@
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 @@
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)) {
More information about the open-ils-commits
mailing list