diff options
author | Thomas ZILLIOX <thomas@zilliox.me> | 2013-08-12 02:14:36 +0400 |
---|---|---|
committer | Thomas ZILLIOX <thomas@zilliox.me> | 2013-08-12 02:14:36 +0400 |
commit | 2505aec89e8f10d4aa51f5c9368464c0956f2402 (patch) | |
tree | d3ab9278c1ae223a1954beb299f01421dd41df00 /plugins/API | |
parent | 4ef8144c601832a66cd1cffe492c88fa5214c6a1 (diff) | |
parent | 585ca551aedd4a3014c479231f009ad12d7cb8ce (diff) |
Merge from master
Diffstat (limited to 'plugins/API')
-rw-r--r-- | plugins/API/API.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php index 7058bdb0ce..977e4accd8 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -538,8 +538,8 @@ class API * Given a segment, will return a list of the most used values for this particular segment. * @param $segmentName * @param $idSite + * @throws \Exception * @return array - * @throws Exception */ public function getSuggestedValuesForSegment($segmentName, $idSite) { @@ -555,7 +555,7 @@ class API } } if (empty($segmentFound)) { - throw new Exception("Requested segment not found."); + throw new \Exception("Requested segment not found."); } $startDate = Date::now()->subDay(60)->toString(); @@ -582,7 +582,7 @@ class API $request = new Request($requestLastVisits); $table = $request->process(); if (empty($table)) { - throw new Exception("There was no data to suggest for $segmentName"); + throw new \Exception("There was no data to suggest for $segmentName"); } // Cleanup data to return the top suggested (non empty) labels for this segment |