[LON-CAPA-cvs] cvs: loncom /interface lonaboutme.pm

amueller amueller@source.lon-capa.org
Fri, 03 Apr 2009 10:46:13 -0000


amueller		Fri Apr  3 10:46:13 2009 EDT

  Modified files:              
    /loncom/interface	lonaboutme.pm 
  Log:
  If you didn't have uploaded a picture the delete button doesn't appear
  
Index: loncom/interface/lonaboutme.pm
diff -u loncom/interface/lonaboutme.pm:1.121 loncom/interface/lonaboutme.pm:1.122
--- loncom/interface/lonaboutme.pm:1.121	Thu Apr  2 18:36:39 2009
+++ loncom/interface/lonaboutme.pm	Fri Apr  3 10:46:13 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Personal Information Page
 #
-# $Id: lonaboutme.pm,v 1.121 2009/04/02 18:36:39 bisitz Exp $
+# $Id: lonaboutme.pm,v 1.122 2009/04/03 10:46:13 amueller Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -352,9 +352,11 @@
          '<input type="file" name="uploaddoc" size="50" />'.
          '<input type="submit" name="storeupl" value="'.&mt('Upload').'" />'.
          '<input type="hidden" name="popup" value="'.$env{'form.popup'}.'" />'.
-	 '</form><form method="post"><input type="submit" name="delupl" value="'.&mt('Delete Photo').'" /> </form><p>
-');
-
+	 '</form>');
+	      if ($syllabus{'uploaded.photourl'}) {
+              $r->print('<form method="post"><input type="submit" name="delupl" value="'.&mt('Delete Photo').'" /> </form>')
+          }
+          $r->print('<p>');
        }
 
 	if($allowed) {