Andrej Hudec 12 anni fa
parent
commit
0ad1375f8b
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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);
         }