comanage-dev - [comanage-dev] r241 - registry/trunk/app/Controller
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r241 - registry/trunk/app/Controller
- Date: Fri, 2 Mar 2012 16:25:25 -0500
Author: benno
Date: 2012-03-02 16:25:25 -0500 (Fri, 02 Mar 2012)
New Revision: 241
Modified:
registry/trunk/app/Controller/CosController.php
Log:
Check for empty args before redirect
Modified: registry/trunk/app/Controller/CosController.php
===================================================================
--- registry/trunk/app/Controller/CosController.php 2012-02-28 19:09:58
UTC (rev 240)
+++ registry/trunk/app/Controller/CosController.php 2012-03-02 21:25:25
UTC (rev 241)
@@ -247,8 +247,11 @@
$r = array('controller' =>
$this->Session->read('co-select.controller'),
'action' => $this->Session->read('co-select.action'),
'co' => $ucos[0]['Co']['id']);
-
- $this->redirect(array_merge($r,
$this->Session->read('co-select.args')));
+
+ if($this->Session->check('co-select.args'))
+ $this->redirect(array_merge($r,
$this->Session->read('co-select.args')));
+ else
+ $this->redirect($r);
} else {
// Multiple COs found
- [comanage-dev] r241 - registry/trunk/app/Controller, svnlog, 03/02/2012
Archive powered by MHonArc 2.6.16.