Author: sevein
Date: Tue Sep 27 16:44:24 2011
New Revision: 9858

Log:
Check if resource is set

Modified:
   trunk/apps/qubit/modules/informationobject/actions/browseAction.class.php

Modified: 
trunk/apps/qubit/modules/informationobject/actions/browseAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/browseAction.class.php   
Tue Sep 27 15:56:59 2011        (r9857)
+++ trunk/apps/qubit/modules/informationobject/actions/browseAction.class.php   
Tue Sep 27 16:44:24 2011        (r9858)
@@ -35,9 +35,10 @@
 
     $criteria = new Criteria;
 
-    $this->resource = $this->getRoute()->resource;
-    if (isset($this->resource))
+    if (isset($this->getRoute()->resource))
     {
+      $this->resource = $this->getRoute()->resource;
+
       $criteria->add(QubitInformationObject::PARENT_ID, $this->resource->id);
     }
     else

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to