Selaa lähdekoodia

default becomes 0

Thijs Kinkhorst 22 vuotta sitten
vanhempi
commit
4dc2e61e2e
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      plugins/listcommands/mailout.php
  2. 1 1
      plugins/spamcop/spamcop.php

+ 1 - 1
plugins/listcommands/mailout.php

@@ -64,7 +64,7 @@ if (count($idents) > 1) {
     }
     }
     echo '</select>' . "\n" ;
     echo '</select>' . "\n" ;
 } else {
 } else {
-    echo htmlspecialchars('"'.$idents['default']['full_name'].'" <'.$idents['default']['email_address'].'>');
+    echo htmlspecialchars('"'.$idents[0]['full_name'].'" <'.$idents[0]['email_address'].'>');
 }
 }
 
 
 echo '<br />'
 echo '<br />'

+ 1 - 1
plugins/spamcop/spamcop.php

@@ -163,7 +163,7 @@ agree to follow SpamCop's rules/terms of service/etc.</p>
      htmlspecialchars($passed_id) ?>">
      htmlspecialchars($passed_id) ?>">
   <input type="hidden" name="send_to" value="<?PHP echo $report_email?>">
   <input type="hidden" name="send_to" value="<?PHP echo $report_email?>">
   <input type="hidden" name="subject" value="reply anyway">
   <input type="hidden" name="subject" value="reply anyway">
-  <input type="hidden" name="identity" value="default">
+  <input type="hidden" name="identity" value="0">
   <input type="hidden" name="session" value="<?PHP echo $session?>">
   <input type="hidden" name="session" value="<?PHP echo $session?>">
   <input type="submit" name="send" value="Send Spam Report">
   <input type="submit" name="send" value="Send Spam Report">
 <?PHP } else {
 <?PHP } else {