diff --git a/phpgwapi/inc/class.db_pgsql.inc.php b/phpgwapi/inc/class.db_pgsql.inc.php index 5e35624ab6..665d752901 100644 --- a/phpgwapi/inc/class.db_pgsql.inc.php +++ b/phpgwapi/inc/class.db_pgsql.inc.php @@ -60,12 +60,12 @@ { $this->query($query); - if(ereg('xmlrpc.php',$GLOBALS['PHP_SELF'])) + if (ereg('xmlrpc.php',$_SERVER['PHP_SELF'])) { $this->xmlrpc = True; } - if(ereg('soap.php',$GLOBALS['PHP_SELF'])) + if (ereg('soap.php',$_SERVER['PHP_SELF'])) { $this->soap = True; }