浏览代码

don't list index.php in sound options. issue specific to 1.5.1cvs and 1.4.6cvs

tokul 20 年之前
父节点
当前提交
30c03d2ddf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/newmail/newmail_opt.php

+ 1 - 1
plugins/newmail/newmail_opt.php

@@ -142,7 +142,7 @@ if ($newmail_allowsound) {
     $d = dir(SM_PATH . 'plugins/newmail/sounds');
     $d = dir(SM_PATH . 'plugins/newmail/sounds');
     while($entry=$d->read()) {
     while($entry=$d->read()) {
         // $fname = get_location () . '/sounds/' . $entry;
         // $fname = get_location () . '/sounds/' . $entry;
-        if ($entry != '..' && $entry != '.' && $entry != 'CVS') {
+        if ($entry != '..' && $entry != '.' && $entry != 'CVS' && $entry != 'index.php') {
             echo '<option ';
             echo '<option ';
             if ($entry == $newmail_media) {
             if ($entry == $newmail_media) {
                 echo 'selected="selected" ';
                 echo 'selected="selected" ';