--- loncom/interface/loncommon.pm	2018/11/06 15:37:37	1.1322
+++ loncom/interface/loncommon.pm	2018/11/18 22:50:52	1.1324
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.1322 2018/11/06 15:37:37 raeburn Exp $
+# $Id: loncommon.pm,v 1.1324 2018/11/18 22:50:52 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -16425,6 +16425,7 @@ sub lon_status_items {
                      E         => 100,
                      W         => 4,
                      N         => 1,
+                     U         => 5,
                      threshold => 200,
                      sysmail   => 2500,
                    );
@@ -16432,6 +16433,7 @@ sub lon_status_items {
                    E => 'Errors',
                    W => 'Warnings',
                    N => 'Notices',
+                   U => 'Unsent',
                 );
     return (\%defaults,\%names);
 }
@@ -17799,6 +17801,9 @@ sub create_captcha {
             last;
         }
     }
+    if ($output eq '') {
+        &Apache::lonnet::logthis("Failed to create Captcha code after $tries attempts.");
+    }
     return $output;
 }