ErrorException[ Warning ]: number_format() expects parameter 1 to be double, string given

D:\wwwroot\teachinchina\wwwroot\wit\control\seller.php[ 59 ]

54 	$strPageTitle="信誉等级-".$shopTitle."-".$_K['html_title'];
55 	$strPageKeyword="($arrSellerInfo[username]的店铺,$arrSellerInfo[username]的信誉等级)";
56 	$strPageDescription=$arrSellerInfo['seo_desc'];
57 }
58 $incomeCash = db_factory::query(sprintf('SELECT sum(fina_cash) as cash FROM `'.TABLEPRE.'witkey_finance` where to_days( NOW( ) ) - to_days( FROM_UNIXTIME( fina_time ) ) <=90  and fina_type="in" and (fina_action="sale_service" or fina_action="task_bid" or fina_action="sale_gy") and uid = %s',$arrSellerInfo['uid']));
59 $incomeCash = number_format($incomeCash[0][cash],2);
60 $arrAuthItems = keke_auth_fac_class::getAuthItemListByUid($id);
61 $arrSellerLevel = unserialize($arrSellerInfo['seller_level']);
62 $arrSellerMark	    = keke_user_mark_class::get_user_aid ( $arrSellerInfo['uid'], '2', null, '1' );
63 foreach ($arrSellerMark as $k=>$v) {
64 	$arrSellerMark[$k]['star'] =intval($v['avg']);
  1. D:\wwwroot\teachinchina\wwwroot\wit\index.php [ 68 ] » require ( arguments )

  2. D:\wwwroot\teachinchina\wwwroot\wit\control\seller.php [ 59 ] » number_format ( arguments )

  3. PHP internal call » keke_core_class::error_handler ( arguments )

Environment