diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-03-23 05:41:16 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-03-23 05:41:16 +0300 |
commit | 9789c56f51880ed628959c5d75298acc0f0fde33 (patch) | |
tree | 057601bd4ce1e11d7da01453b9ab1ddcb031ee8d /core/Tracker/GoalManager.php | |
parent | c50664085bf7c659deb19c1e5c4ee426696a7ad8 (diff) |
- improved installation code, increased security checks & feedback to user, in case user tries to install and conflicting tables are already found in the DB
- fixed #612 Error when no sites configured
- fixed Base table or view not found doesn't exist piwik_option bug that was submitted by several users
Diffstat (limited to 'core/Tracker/GoalManager.php')
-rw-r--r-- | core/Tracker/GoalManager.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/Tracker/GoalManager.php b/core/Tracker/GoalManager.php index 11296a3b11..bac8759ecc 100644 --- a/core/Tracker/GoalManager.php +++ b/core/Tracker/GoalManager.php @@ -28,8 +28,11 @@ class Piwik_Tracker_GoalManager static public function getGoalDefinitions( $idSite ) { $websiteAttributes = Piwik_Common::getCacheWebsiteAttributes( $idSite ); - $goals = $websiteAttributes['goals']; - return $goals; + if(isset($websiteAttributes['goals'])) + { + return $websiteAttributes['goals']; + } + return array(); } static public function getGoalDefinition( $idSite, $idGoal ) |