[LON-CAPA-cvs] cvs: loncom /interface londocs.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Sat, 18 Sep 2004 17:03:25 -0000
albertel Sat Sep 18 13:03:25 2004 EDT
Modified files:
/loncom/interface londocs.pm
Log:
- doan't allow things to be renamed as nothign
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.143 loncom/interface/londocs.pm:1.144
--- loncom/interface/londocs.pm:1.143 Tue Sep 14 17:27:36 2004
+++ loncom/interface/londocs.pm Sat Sep 18 13:03:25 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.143 2004/09/14 21:27:36 raeburn Exp $
+# $Id: londocs.pm,v 1.144 2004/09/18 17:03:25 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -934,10 +934,11 @@
$comment=~s/\</\<\;/g;
$comment=~s/\>/\>\;/g;
$comment=~s/\:/\:/g;
- $Apache::lonratedt::resources[
+ if ($comment=~/\S/) {
+ $Apache::lonratedt::resources[
$Apache::lonratedt::order[$idx]]=
- $comment.':'.join(':',@rrest);
-
+ $comment.':'.join(':',@rrest);
+ }
}
# Store the changed version
($errtext,$fatal)=&storemap($coursenum,$coursedom,