Bladeren bron

Remove the error suppressors I had included (@)

Jimmy Conner 20 jaren geleden
bovenliggende
commit
c73e982818
3 gewijzigde bestanden met toevoegingen van 7 en 6 verwijderingen
  1. 2 1
      plugins/filters/filters.php
  2. 1 1
      plugins/filters/options.php
  3. 4 4
      plugins/filters/setup.php

+ 2 - 1
plugins/filters/filters.php

@@ -25,7 +25,8 @@
  * @subpackage filters
  * @subpackage filters
  */
  */
 
 
-@include_once (SM_PATH . 'plugins/filters/config.php');
+if (file_exists(SM_PATH . 'plugins/filters/config.php'))
+    include_once (SM_PATH . 'plugins/filters/config.php');
 
 
 /**
 /**
  * Init Hooks
  * Init Hooks

+ 1 - 1
plugins/filters/options.php

@@ -37,7 +37,7 @@ require_once(SM_PATH . 'functions/imap.php');
 require_once(SM_PATH . 'plugins/filters/filters.php');
 require_once(SM_PATH . 'plugins/filters/filters.php');
 
 
 if (!file_exists(SM_PATH . 'plugins/filters/config.php')) return;
 if (!file_exists(SM_PATH . 'plugins/filters/config.php')) return;
-@include_once (SM_PATH . 'plugins/filters/config.php');
+include_once (SM_PATH . 'plugins/filters/config.php');
 
 
 global $AllowSpamFilters;
 global $AllowSpamFilters;
 
 

+ 4 - 4
plugins/filters/setup.php

@@ -12,7 +12,7 @@
  * @access private
  * @access private
  */
  */
 function squirrelmail_plugin_init_filters() {
 function squirrelmail_plugin_init_filters() {
-    @include_once(SM_PATH . 'plugins/filters/filters.php');
+    include_once(SM_PATH . 'plugins/filters/filters.php');
     filters_init_hooks ();
     filters_init_hooks ();
 }
 }
 
 
@@ -32,7 +32,7 @@ function filters_special_mailbox( $mb ) {
  * @access private
  * @access private
  */
  */
 function filters_optpage_register_block_hook() {
 function filters_optpage_register_block_hook() {
-    @include_once(SM_PATH . 'plugins/filters/filters.php');
+    include_once(SM_PATH . 'plugins/filters/filters.php');
     filters_optpage_register_block ();
     filters_optpage_register_block ();
 }
 }
 
 
@@ -42,7 +42,7 @@ function filters_optpage_register_block_hook() {
  * @access private
  * @access private
  */
  */
 function start_filters_hook($args) {
 function start_filters_hook($args) {
-    @include_once(SM_PATH . 'plugins/filters/filters.php');
+    include_once(SM_PATH . 'plugins/filters/filters.php');
     start_filters ();
     start_filters ();
 }
 }
 
 
@@ -51,7 +51,7 @@ function start_filters_hook($args) {
  * @access private
  * @access private
  */
  */
 function update_for_folder_hook() {
 function update_for_folder_hook() {
-    @include_once(SM_PATH . 'plugins/filters/filters.php');
+    include_once(SM_PATH . 'plugins/filters/filters.php');
     update_for_folder ();
     update_for_folder ();
 }
 }