From 29a66d012a940d819d7c4037e6e901a203199a6d Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 27 Aug 2009 07:10:26 +0000 Subject: [PATCH] Ignore non set PIDs, too git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14148 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_listing.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 156cc7b80..96e63ac83 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -424,8 +424,9 @@ class listing { // Reset object counter $this->objectTypeCount= array(); - // Do not do anything if this is not our PID - if(isset($_REQUEST['PID']) && $_REQUEST['PID'] != $this->pid) { + // 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) { return; } @@ -901,8 +902,8 @@ class listing { function getAction() { - // Do not do anything if this is not our PID - if(isset($_REQUEST['PID']) && $_REQUEST['PID'] != $this->pid) { + // 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) { return; } -- 2.30.2