Skip to content
Extraits de code Groupes Projets
Valider 0421a687 rédigé par mattpiwik's avatar mattpiwik
Parcourir les fichiers

Fixes #3170

git-svn-id: http://dev.piwik.org/svn/trunk@6447 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent d4b2eee4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -123,8 +123,11 @@ class Piwik_ImageGraph_API
try
{
//Fetch the metadata for given api-action
$apiParameters = array( 'idGoal' => $idGoal);
$apiParameters = array();
if(!empty($idGoal)) {
$apiParameters = array( 'idGoal' => $idGoal);
}
// Fetch the metadata for given api-action
$metadata = Piwik_API_API::getInstance()->getMetadata($idSite, $apiModule, $apiAction, $apiParameters, $languageLoaded, $period, $date);
if(!$metadata)
{
......@@ -179,6 +182,8 @@ class Piwik_ImageGraph_API
}
}
$width = (int)$width;
$height = (int)$height;
if(empty($width))
{
$width = self::$DEFAULT_PARAMETERS[$graphType][self::WIDTH_KEY];
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter