Skip to content
Extraits de code Groupes Projets
Valider dbe2fc80 rédigé par mattab's avatar mattab
Parcourir les fichiers

Fix case when datatable false

parent 97f4568b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -389,7 +389,7 @@ class ViewDataTable
{
if (self::$reportPropertiesCache === null) {
self::$reportPropertiesCache = array();
Piwik_PostEvent('ViewDataTable.getReportDisplayProperties', array(&self::$reportPropertiesCache));
Piwik_PostEvent('ViewDataTable.getReportDisplayProperties', array(self::$reportPropertiesCache));
}
return self::$reportPropertiesCache;
......@@ -952,8 +952,8 @@ class ViewDataTable
if ($strPeriod !== false
&& $strDate !== false
&& (is_null($this->dataTable) || $this->dataTable->getRowsCount() == 0)
) {
&& (is_null($this->dataTable)
|| (!empty($this->dataTable) && $this->dataTable->getRowsCount() == 0))) {
// if range, only look at the first date
if ($strPeriod == 'range') {
$idSite = Common::getRequestVar('idSite', '');
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter