cvs: pear /Mail_Mime mimeDecode.php
| From: | Richard Heyes | Date: | Mon, 08 Apr 2002 17:32:17 +0000 |
| Subject: | cvs: pear /Mail_Mime mimeDecode.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3148@lists.php.net to get a copy of this message | ||
richard Mon Apr 8 13:32:17 2002 EDT
Modified files:
/pear/Mail_Mime mimeDecode.php
Log:
* Need to check for the new variable instead of just defining it. :/
Index: pear/Mail_Mime/mimeDecode.php
diff -u pear/Mail_Mime/mimeDecode.php:1.27 pear/Mail_Mime/mimeDecode.php:1.28
--- pear/Mail_Mime/mimeDecode.php:1.27 Mon Apr 8 13:29:24 2002
+++ pear/Mail_Mime/mimeDecode.php Mon Apr 8 13:32:17 2002
@@ -48,7 +48,7 @@
* perhaps even message/partial.
*
* @author Richard Heyes <richard@phpguru.org>
-* @version $Revision: 1.27 $
+* @version $Revision: 1.28 $
* @package Mail
*/
@@ -160,16 +160,17 @@
{
// Have we been called statically? If so, create an object and pass details to that.
- if (!isset($this) AND isset($params['input'])) {
+ if (!isset($this->mailMimeDecode) AND isset($params['input'])) {
- if (isset($params['crlf']))
+ if (isset($params['crlf'])) {
$obj = new Mail_mimeDecode($params['input'], $params['crlf']);
- else
+ } else {
$obj = new Mail_mimeDecode($params['input']);
+ }
$structure = $obj->decode($params);
// Called statically but no input
- } elseif (!isset($this)) {
+ } elseif (!isset($this->mailMimeDecode)) {
return $this->raiseError('Called statically and no input given');
// Called via an object