From 96bcf1c6774971212667efa11268cd701e622790 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 4 Jan 2008 06:52:12 +0000 Subject: [PATCH] Some additional isset changes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8202 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_config.inc | 4 ++-- gosa-core/include/class_ldap.inc | 2 +- gosa-core/include/class_log.inc | 2 +- gosa-core/include/php_setup.inc | 2 +- gosa-core/setup/main.inc | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index 9e3753790..68b073dee 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -80,10 +80,10 @@ class config { xml_set_object($this->parser, $this); xml_set_element_handler($this->parser, "tag_open", "tag_close"); $this->parse($this->filename); - if(isset($_SESSION['plist'])){ + if(session::is_set('plist')){ unset($_SESSION['plist']); } - if(isset($_SESSION['plug'])){ + if(session::is_set('plug')){ unset($_SESSION['plug']); } if(isset($_GET['plug'])){ diff --git a/gosa-core/include/class_ldap.inc b/gosa-core/include/class_ldap.inc index 763db832a..11e3fc884 100644 --- a/gosa-core/include/class_ldap.inc +++ b/gosa-core/include/class_ldap.inc @@ -1362,7 +1362,7 @@ class LDAP{ function log($string) { - if (isset($_SESSION['config'])){ + if (session::is_set('config')){ $cfg= $_SESSION['config']; if (isset($cfg->current['LDAPSTATS']) && preg_match('/true/i', $cfg->current['LDAPSTATS'])){ syslog (LOG_INFO, $string); diff --git a/gosa-core/include/class_log.inc b/gosa-core/include/class_log.inc index daad88908..022d2fe62 100644 --- a/gosa-core/include/class_log.inc +++ b/gosa-core/include/class_log.inc @@ -51,7 +51,7 @@ class log { } $entry = array(); - if(!isset($_SESSION['config'])){ + if(!session::is_set('config')){ $entry['user']= "unkown"; }else{ diff --git a/gosa-core/include/php_setup.inc b/gosa-core/include/php_setup.inc index a41373dc0..92789b2f4 100644 --- a/gosa-core/include/php_setup.inc +++ b/gosa-core/include/php_setup.inc @@ -79,7 +79,7 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) "*** PHP error information ***\n\n"); } - if (isset($_SESSION['js']) && $_SESSION['js']==FALSE){ + if (session::is_set('js') && $_SESSION['js']==FALSE){ $error_collector= "
"; } else { $error_collector= " diff --git a/gosa-core/setup/main.inc b/gosa-core/setup/main.inc index bce41ef68..870490a74 100644 --- a/gosa-core/setup/main.inc +++ b/gosa-core/setup/main.inc @@ -19,7 +19,7 @@ */ /* Create a new setup class if necessary */ -if (!isset($_SESSION['setup']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){ +if (!session::is_set('setup') || (isset($_GET['reset']) && $_GET['reset'] == 1)){ $_SESSION['setup']= new setup (); } $setup= $_SESSION['setup']; -- 2.30.2