Merge of Steve Brown's patch
[squirrelmail.git] / plugins / newmail / newmail_opt.php
index 4ef135aa9e4545f139ded5e29a8fa2678de8168a..eb798bfa144e8ccfabaf5f3b8269743f81519716 100644 (file)
@@ -1,12 +1,12 @@
 <?php
+
 /**
  * newmails_opt.php - options page
  *
- * Copyright (c) 1999-2005 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
  * Displays all options relating to new mail sounds
  *
+ * @copyright &copy; 1999-2006 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
  * @subpackage newmail
@@ -142,7 +142,7 @@ if ($newmail_allowsound) {
     $d = dir(SM_PATH . 'plugins/newmail/sounds');
     while($entry=$d->read()) {
         // $fname = get_location () . '/sounds/' . $entry;
-        if ($entry != '..' && $entry != '.' && $entry != 'CVS') {
+        if ($entry != '..' && $entry != '.' && $entry != 'CVS' && $entry != 'index.php') {
             echo '<option ';
             if ($entry == $newmail_media) {
                 echo 'selected="selected" ';