gunnar: server/php-kolab/Kolab_Filter/Filter Filter.php,1.7,1.8

cvs at kolab.org cvs at kolab.org
Tue Feb 26 22:33:58 CET 2008


Author: gunnar

Update of /kolabrepository/server/php-kolab/Kolab_Filter/Filter
In directory doto:/tmp/cvs-serv22361/Filter

Modified Files:
	Filter.php 
Log Message:
Fix some minor issues with the option handling.

Index: Filter.php
===================================================================
RCS file: /kolabrepository/server/php-kolab/Kolab_Filter/Filter/Filter.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- Filter.php	12 Feb 2008 09:54:37 -0000	1.7
+++ Filter.php	26 Feb 2008 21:33:56 -0000	1.8
@@ -255,15 +255,15 @@
         }
         $this->_recipients = $recipients;
 
-        if (!empty($options['c'])) {
+        if (isset($options['c']) && !empty($options['c'])) {
             $this->_client_address = $options['c'];
         }
         
-        if (!empty($options['h'])) {
+        if (isset($options['h']) && !empty($options['h'])) {
             $this->_fqhostname = strtolower($options['h']);
         }
         
-        if (!empty($options['u'])) {
+        if (isset($options['u']) && !empty($options['u'])) {
             $this->_sasl_username = strtolower($options['u']);
         }
     }





More information about the commits mailing list