Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2010-03-03 21:30:53 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2010-03-03 21:48:45 (GMT)
commit4241cf749a398f1c54687ddd56009b877d74f196 (patch)
treeecfe9f3903fd92cc240ec711c91a372219c9b998
parent7a09b2142cccbf3019986294442a7278cad135bb (diff)
Supress errors, needs to be investigated
-rw-r--r--site/app/controllers/versions_controller.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/site/app/controllers/versions_controller.php b/site/app/controllers/versions_controller.php
index 7a652e2..a026915 100644
--- a/site/app/controllers/versions_controller.php
+++ b/site/app/controllers/versions_controller.php
@@ -63,6 +63,12 @@ class VersionsController extends AppController
$this->publish('addon', $addon);
$this->publish('license_text', $license_text);
+ // XXX supress errors
+ if (!isset($addon['Translation']['name'])) {
+ $this->redirect('/');
+ return;
+ }
+
// set up view, then render
$this->layout = 'amo2009';
$this->pageTitle = sprintf(___('Source code license for %1$s %2$s'),