[pLog-svn] r2864 - plugins/branches/lifetype-1.0/moblog/class/moblog

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sun Jan 29 01:38:29 GMT 2006


Author: jondaley
Date: 2006-01-29 01:38:28 +0000 (Sun, 29 Jan 2006)
New Revision: 2864

Modified:
   plugins/branches/lifetype-1.0/moblog/class/moblog/moblogrequest.class.php
Log:
check that the parts array is valid before running the foreach loop on it

Modified: plugins/branches/lifetype-1.0/moblog/class/moblog/moblogrequest.class.php
===================================================================
--- plugins/branches/lifetype-1.0/moblog/class/moblog/moblogrequest.class.php	2006-01-26 23:55:03 UTC (rev 2863)
+++ plugins/branches/lifetype-1.0/moblog/class/moblog/moblogrequest.class.php	2006-01-29 01:38:28 UTC (rev 2864)
@@ -146,6 +146,8 @@
         function parseMimeParts( $parts )
         {
             $this->_attachments = Array();
+            if(!$parts)
+                return;
             foreach( $parts as $part ) {
                 MoblogLogger::log( "attachment type = ".$part->ctype_primary."/".$part->ctype_secondary );            
                 



More information about the pLog-svn mailing list