diff --git a/wrenchboard/src/shared_tool/reco_egine.cc b/wrenchboard/src/shared_tool/reco_egine.cc index 90d884be..1f8e7934 100644 --- a/wrenchboard/src/shared_tool/reco_egine.cc +++ b/wrenchboard/src/shared_tool/reco_egine.cc @@ -115,13 +115,14 @@ long WrenchHomeBanners(CVars in, CVars &out) { if( RecoCheckTaskDue( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; } // - temporary for test if( RecoOffersInterest( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; } - if(itm_count < 3){ - } - if( RecoReferAFreind( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; } - if( RecoLearnMore( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; } - if( RecoCheckBlog( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; } + + if(itm_count < 3){ + if( RecoReferAFreind( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; } + if( RecoLearnMore( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; } + if( RecoCheckBlog( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; } + } out["home_dash_type"]="DEFAULT_HOME_DASH"; LoginWrenchBoardSetDashType(in, out); @@ -170,7 +171,7 @@ long RecoLearnMore( int itm_count, CVars in, CVars &out ){ const PGresult *res; char vname[30]; try { - + int ic = itm_count; snprintf(vname, sizeof (vname), "title_%05d", ic); out[vname] = "Learn more";