private function saveRecipientsList($recipients){ $data = new Gpf_Db_UserAttribute(); $data->setAccountUserId(Gpf_Session::getAuthUser()->getUserId()); $data->setName('RecipientsList'); try { $data->loadFromData(array(Gpf_Db_Table_UserAttributes::ACCOUNT_USER_ID,Gpf_Db_Table_UserAttributes::NAME)); $data->setValue($recipients); $data->save(); } catch(Gpf_DbEngine_NoRowException $e) { $data->setValue($recipients); $data->insert(); } }