mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +02:00
N°1110 - DataSynchro: PHP Notice Undefined Index
* Fix access to REQUEST_URI when called by script SVN:trunk[5007]
This commit is contained in:
@@ -1469,7 +1469,14 @@ class DBObjectSearch extends DBSearch
|
|||||||
$aContextData = array();
|
$aContextData = array();
|
||||||
if (self::$m_bQueryCacheEnabled || self::$m_bTraceQueries)
|
if (self::$m_bQueryCacheEnabled || self::$m_bTraceQueries)
|
||||||
{
|
{
|
||||||
$aContextData['sRequestUri'] = $_SERVER['REQUEST_URI'];
|
if (!empty($_SERVER['REQUEST_URI']))
|
||||||
|
{
|
||||||
|
$aContextData['sRequestUri'] = $_SERVER['REQUEST_URI'];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$aContextData['sRequestUri'] = $_SERVER['SCRIPT_NAME'];
|
||||||
|
}
|
||||||
|
|
||||||
// Need to identify the query
|
// Need to identify the query
|
||||||
$sOqlQuery = $oSearch->ToOql(false, null, true);
|
$sOqlQuery = $oSearch->ToOql(false, null, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user