[LON-CAPA-cvs] cvs: loncom(version_2_9_X) /lonnet/perl lonnet.pm

raeburn raeburn@source.lon-capa.org
Fri, 01 Oct 2010 14:26:25 -0000


raeburn		Fri Oct  1 14:26:25 2010 EDT

  Modified files:              (Branch: version_2_9_X)
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Backport 1.1087.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1056.2.6 loncom/lonnet/perl/lonnet.pm:1.1056.2.7
--- loncom/lonnet/perl/lonnet.pm:1.1056.2.6	Fri Aug 20 20:47:18 2010
+++ loncom/lonnet/perl/lonnet.pm	Fri Oct  1 14:26:24 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1056.2.6 2010/08/20 20:47:18 raeburn Exp $
+# $Id: lonnet.pm,v 1.1056.2.7 2010/10/01 14:26:24 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -6729,6 +6729,9 @@
     if ($reply ne 'ok') {
         return 'error: '.$reply;
     }
+    if ($names{'permanentemail'} ne $oldnames{'permanentemail'}) {
+        &Apache::lonnet::devalidate_cache_new('emailscache',$uname.':'.$udom);
+    }
     my $sqlresult = &update_allusers_table($uname,$udom,\%names);
     &devalidate_cache_new('namescache',$uname.':'.$udom);
     $logmsg = 'Success modifying user '.$logmsg;