[Svn] r5442 - trunk/plugins/managesieve/lib

trac at roundcube.net trac at roundcube.net
Thu Nov 17 14:44:41 CET 2011


Author: alec
Date: 2011-11-17 07:44:41 -0600 (Thu, 17 Nov 2011)
New Revision: 5442

Modified:
   trunk/plugins/managesieve/lib/rcube_sieve_script.php
Log:
- Removed unused private variable


Modified: trunk/plugins/managesieve/lib/rcube_sieve_script.php
===================================================================
--- trunk/plugins/managesieve/lib/rcube_sieve_script.php	2011-11-17 13:18:48 UTC (rev 5441)
+++ trunk/plugins/managesieve/lib/rcube_sieve_script.php	2011-11-17 13:44:41 UTC (rev 5442)
@@ -29,7 +29,6 @@
 
     private $vars = array();        // "global" variables
     private $prefix = '';           // script header (comments)
-    private $capabilities = array(); // Sieve extensions supported by server
     private $supported = array(     // Sieve extensions supported by class
         'fileinto',                 // RFC5228
         'envelope',                 // RFC5228
@@ -56,12 +55,12 @@
      */
     public function __construct($script, $capabilities=array())
     {
-        $this->capabilities = array_map('strtolower', (array) $capabilities);
+        $capabilities = array_map('strtolower', (array) $capabilities);
 
         // disable features by server capabilities
-        if (!empty($this->capabilities)) {
+        if (!empty($capabilities)) {
             foreach ($this->supported as $idx => $ext) {
-                if (!in_array($ext, $this->capabilities)) {
+                if (!in_array($ext, $capabilities)) {
                     unset($this->supported[$idx]);
                 }
             }

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list