]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/noticeform.php
Merge branch 'master' of git.gnu.io:Quix0r/gnu-social
[quix0rs-gnu-social.git] / lib / noticeform.php
index f9b2309119485aa12c72ee0df0f0fa2f133c35ce..4ad6190131e6bad475023b7ac510f7c1bcdceeb6 100644 (file)
@@ -103,7 +103,7 @@ class NoticeForm extends Form
 
         // When creating a notice form we don't want to collide with
         // possibly existing HTML elements, as naming conventions are similar.
-        $this->id_suffix = rand();
+        $this->id_suffix = mt_rand();
 
         if (is_null($options)) {
             $options = array();
@@ -269,7 +269,7 @@ class NoticeForm extends Form
                     'type' => 'checkbox',
                     'class' => 'checkbox',
                     'id' => $this->id() . '-notice_data-geo',
-                    'checked' => true, // ?
+                    'checked' => false, // Must be unchecked by default
                 ));
                 $this->out->element('label', array('class' => 'notice_data-geo',
                                                    'for'   => $this->id().'-notice_data-geo'),