Can't view emails with attachments (SVN) (wasRe: PHP errorwithversion265)

Martin Marques martin at bugs.unl.edu.ar
Tue Jun 27 23:09:49 CEST 2006


On Tue, 27 Jun 2006 23:07:52 +0900, Gadjet roundcube <gadjet-roundcube at unrelated.net.au> wrote:
> 
> I have exactly the same issue (with the blank firefox page)
> 
> PHP 5.1.2

Try this:

$ svn diff program/include/rcube_imap.inc
Index: program/include/rcube_imap.inc
===================================================================
--- program/include/rcube_imap.inc      (revision 266)
+++ program/include/rcube_imap.inc      (working copy)
@@ -1053,8 +1053,8 @@
       $start_index = 100000;
       foreach ($a_uids as $uid)
         {
-        $index = array_search($uid, $a_cache_index);
-        $start_index = min($index, $start_index);
+       if(($index = array_search($uid, $a_cache_index)) !== FALSE)
+         $start_index = min($index, $start_index);
         }

       // clear cache from the lowest index on
@@ -1712,8 +1712,8 @@
       $encstr = substr($input, $pos+2, ($end_pos-$pos-2));
       $rest = substr($input, $end_pos+2);

-      $out .= rcube_imap::_decode_mime_string_part($encstr);
-      $out .= rcube_imap::decode_mime_string($rest);
+      $out .= $this->_decode_mime_string_part($encstr);
+      $out .= $this->decode_mime_string($rest);

       return $out;
       }

--
---------------------------------------------------------
Lic. Martín Marqués         |   SELECT 'mmarques' || 
Centro de Telemática        |       '@' || 'unl.edu.ar';
Universidad Nacional        |   DBA, Programador, 
    del Litoral             |   Administrador
---------------------------------------------------------






More information about the Dev mailing list