Code

Removed firstCall check from update function. This is problematic with several sub...
[gosa.git] / gosa-core / include / class_listing.inc
index 9bd97f74ee353dbc5170745ac7bbfbc6dacc659e..26eca3d1fda152d8325d70262ed1830557456eef 100644 (file)
@@ -49,7 +49,6 @@ class listing {
   var $snapshotHandler= null;
   var $exporter= array();
   var $exportColumns= array();
-  var $firstCall= true;
 
 
   function listing($filename)
@@ -425,15 +424,8 @@ class listing {
     // Reset object counter
     $this->objectTypeCount= array();
 
-    // If we call for the first time, simulate the PID
-    if($this->firstCall) {
-      $_REQUEST['PID']= $this->pid;
-      $this->firstCall= false;
-    }
-
-    // Do not do anything if this is not our PID or there's even
-    // no PID available
-    if(!isset($_REQUEST['PID']) || $_REQUEST['PID'] != $this->pid) {
+    // Do not do anything if this is not our PID
+    if(isset($_REQUEST['PID']) && $_REQUEST['PID'] != $this->pid) {
       return;
     }