]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/toselector.php
better output for registration confirmation
[quix0rs-gnu-social.git] / lib / toselector.php
index 7234a603d8e398d4c0253558ae44cc6a7511d601..f131147dd683ee93f2e6d21e7f1e305a3c376ceb 100644 (file)
@@ -118,10 +118,12 @@ class ToSelector extends Widget
                              false,
                              $default);
 
+        $this->out->elementStart('span', 'checkbox-wrapper');
         $this->out->checkbox('notice_private',
                              // TRANS: Checkbox label in widget for selecting potential addressees to mark the notice private.
-                             _('Private'),
+                             _('Private?'),
                              $this->private);
+        $this->out->elementEnd('span');
     }
 
     static function fillOptions($action, &$options)
@@ -130,6 +132,10 @@ class ToSelector extends Widget
         $toArg = $action->trimmed('notice_to');
         $private = $action->boolean('notice_private');
 
+        if (empty($toArg)) {
+            return;
+        }
+
         list($prefix, $value) = explode(':', $toArg);
         switch ($prefix) {
         case 'group':