cvs: pear /Net_IMAP IMAP.php

From: Date: Fri, 02 Feb 2007 18:56:58 +0000
Subject: cvs: pear /Net_IMAP IMAP.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-44516@lists.php.net to get a copy of this message
hudeldudel Fri Feb 2 18:56:58 2007 UTC Modified files: /pear/Net_IMAP IMAP.php Log: fix for Bug #9986 [getMailboxes() breaks RFC3501/2060] http://cvs.php.net/viewvc.cgi/pear/Net_IMAP/IMAP.php?r1=1.13&r2=1.14&diff_format=u Index: pear/Net_IMAP/IMAP.php diff -u pear/Net_IMAP/IMAP.php:1.13 pear/Net_IMAP/IMAP.php:1.14 --- pear/Net_IMAP/IMAP.php:1.13 Fri Feb 2 17:58:17 2007 +++ pear/Net_IMAP/IMAP.php Fri Feb 2 18:56:58 2007 @@ -1294,7 +1294,7 @@ * @access public * @since 1.0 */ - function getMailboxes($reference = '' , $restriction_search = 0, $returnAttributes=false ) + function getMailboxes($reference = '', $restriction_search = 0, $returnAttributes=false) { if ( is_bool($restriction_search) ){ @@ -1308,7 +1308,7 @@ break; case 1: $mailbox = $reference; - $reference = '%'; + $reference = ''; break; case 2: $mailbox = "%"; @@ -1318,7 +1318,7 @@ if ( is_string( $restriction_search ) ){ $mailbox = $restriction_search; }else { - return new PEAR_Error("UPS... you "); + return new PEAR_Error('Wrong data for 2nd parameter'); } }

« previous php.pear.cvs (#44516) next »