[Piwik-svn] r497 - trunk/modules

svnmaster at piwik.org svnmaster at piwik.org
Thu May 29 04:58:41 CEST 2008


Author: matt
Date: 2008-05-29 04:58:40 +0200 (Thu, 29 May 2008)
New Revision: 497

Modified:
   trunk/modules/ArchiveProcessing.php
Log:
- fix #218: fixed problem when archiving failed to finish, but partly succeeded. Instead of throwing an exception, we now launch the archiving process again.

Modified: trunk/modules/ArchiveProcessing.php
===================================================================
--- trunk/modules/ArchiveProcessing.php	2008-05-29 02:30:52 UTC (rev 496)
+++ trunk/modules/ArchiveProcessing.php	2008-05-29 02:58:40 UTC (rev 497)
@@ -545,9 +545,11 @@
 			}
 		}
 		
+		// case when we have a nb_visits entry in the archive, but the process is not finished yet or failed to finish
+		// therefore we don't have the done=OK
 		if($idarchive === false)
 		{
-			throw new Exception("Error during the archiving process: ". var_export($results,true));
+			return false;
 		}
 		
 		// we look for the nb_visits result for this more recent archive



More information about the Piwik-svn mailing list