Browse Source

Merge pull request #1089 from pulzarraider/test_fix

Fix HelperController
Thomas 12 years ago
parent
commit
d884fda773
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Controller/HelperController.php

+ 2 - 1
Controller/HelperController.php

@@ -157,12 +157,13 @@ class HelperController
         $uniqid   = $request->get('uniqid');
 
         $admin = $this->pool->getInstance($code);
-        $admin->setRequest($request);
 
         if (!$admin) {
             throw new NotFoundHttpException();
         }
 
+        $admin->setRequest($request);
+
         if ($uniqid) {
             $admin->setUniqid($uniqid);
         }