[Piwik-svn] r508 - trunk/modules/Archive/Array

svnmaster at piwik.org svnmaster at piwik.org
Fri Jun 6 03:23:51 CEST 2008


Author: matt
Date: 2008-06-06 03:23:51 +0200 (Fri, 06 Jun 2008)
New Revision: 508

Modified:
   trunk/modules/Archive/Array/IndexedBySite.php
Log:
- fixing notice

Modified: trunk/modules/Archive/Array/IndexedBySite.php
===================================================================
--- trunk/modules/Archive/Array/IndexedBySite.php	2008-06-06 01:23:23 UTC (rev 507)
+++ trunk/modules/Archive/Array/IndexedBySite.php	2008-06-06 01:23:51 UTC (rev 508)
@@ -46,8 +46,8 @@
 		}
 		$inName = "'" . implode("', '",$fields) . "'";
 		
-		
 		$numericTable = null;
+		$aIds = array();
 		foreach($this->archives as $archive)
 		{
 			if(is_null($numericTable))
@@ -58,9 +58,9 @@
 			{
 				throw new Exception("Piwik_Archive_Array_IndexedBySite::getDataTableFromNumeric() algorithm won't work if data is stored in different tables");
 			}
+			$aIds[] = $archive->getIdSite();
 		}
 		
-		
 		$inIds = implode(', ', $aIds);
 		$sql = "SELECT value, name, idarchive, idsite
 								FROM $numericTable



More information about the Piwik-svn mailing list