From 28652b4dc069d458d6b76b7996f621f241209976 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 6 Nov 2005 10:26:01 +0000 Subject: [PATCH] fixed some PHP notices --- lam/templates/lists/listdomains.php | 4 ++-- lam/templates/lists/listgroups.php | 4 ++-- lam/templates/lists/listhosts.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lam/templates/lists/listdomains.php b/lam/templates/lists/listdomains.php index adea722a..1b3f9cad 100644 --- a/lam/templates/lists/listdomains.php +++ b/lam/templates/lists/listdomains.php @@ -50,8 +50,8 @@ $scope = 'domain'; // copy HTTP-GET variables to HTTP-POST $_POST = $_POST + $_GET; -$info = $_SESSION[$scope . 'info']; -$units = $_SESSION[$scope . '_units']; +if (isset($_SESSION[$scope . 'info'])) $info = $_SESSION[$scope . 'info']; +if (isset($_SESSION[$scope . '_units'])) $units = $_SESSION[$scope . '_units']; // check if button was pressed and if we have to add/delete a domain if (isset($_POST['new']) || isset($_POST['del'])){ diff --git a/lam/templates/lists/listgroups.php b/lam/templates/lists/listgroups.php index d241d28e..2aca8315 100644 --- a/lam/templates/lists/listgroups.php +++ b/lam/templates/lists/listgroups.php @@ -54,8 +54,8 @@ $scope = 'group'; // copy HTTP-GET variables to HTTP-POST $_POST = $_POST + $_GET; -$info = $_SESSION[$scope . 'info']; -$units = $_SESSION[$scope . '_units']; +if (isset($_SESSION[$scope . 'info'])) $info = $_SESSION[$scope . 'info']; +if (isset($_SESSION[$scope . '_units'])) $units = $_SESSION[$scope . '_units']; listDoPost($scope); diff --git a/lam/templates/lists/listhosts.php b/lam/templates/lists/listhosts.php index c740068b..ba3284ed 100644 --- a/lam/templates/lists/listhosts.php +++ b/lam/templates/lists/listhosts.php @@ -54,8 +54,8 @@ $scope = 'host'; // copy HTTP-GET variables to HTTP-POST $_POST = $_POST + $_GET; -$info = $_SESSION[$scope . 'info']; -$units = $_SESSION[$scope . '_units']; +if (isset($_SESSION[$scope . 'info'])) $info = $_SESSION[$scope . 'info']; +if (isset($_SESSION[$scope . '_units'])) $units = $_SESSION[$scope . '_units']; listDoPost($scope);