[Affelio-cvs 1175] CVS update: affelio/lib/Affelio/App/Standalone/Admin

Back to archive index

Tadashi Okoshi slash****@users*****
2006年 3月 22日 (水) 19:15:17 JST


Index: affelio/lib/Affelio/App/Standalone/Admin/Messaging.pm
diff -u affelio/lib/Affelio/App/Standalone/Admin/Messaging.pm:1.3 affelio/lib/Affelio/App/Standalone/Admin/Messaging.pm:1.4
--- affelio/lib/Affelio/App/Standalone/Admin/Messaging.pm:1.3	Wed Mar 22 19:07:43 2006
+++ affelio/lib/Affelio/App/Standalone/Admin/Messaging.pm	Wed Mar 22 19:15:17 2006
@@ -14,7 +14,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
-# $Id: Messaging.pm,v 1.3 2006/03/22 10:07:43 slash5234 Exp $
+# $Id: Messaging.pm,v 1.4 2006/03/22 10:15:17 slash5234 Exp $
 
 package Affelio::App::Standalone::Admin::Messaging;
 {
@@ -145,9 +145,13 @@
 	###################################################################
 	#Save the message to draft folder
 	###################################################################
-	my $msg_to_nickname
-	    = $af->getFM->get_attribute_by_afid($msg_to, "nickname");
-	my $msg_to_url = "<A HREF=\"$msg_to\">$msg_to_nickname</A>";
+	my $msg_to_nickname ="";
+	my $msg_to_url = "";
+
+	if($msg_to){
+	    $msg_to_nickname = $af->getFM->get_attribute_by_afid($msg_to, "nickname");
+	    $msg_to_url = "<A HREF=\"$msg_to\">$msg_to_nickname</A>";
+	}
 
 	my $mid = $af->getMESGM->post_message(from => $msg_to_url,
 					      title => $msg_title,


Affelio-cvs メーリングリストの案内
Back to archive index