瀏覽代碼

Fixed bug provoking a warning unseen so far but it was causing a fatal error during the installation, with IIS as web server

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@106 a333f486-631f-4898-b8df-5754b55c2be0
romainq 16 年之前
父節點
當前提交
829327d43d
共有 1 個文件被更改,包括 2 次插入15 次删除
  1. 2 15
      core/cmdbsource.class.inc.php

+ 2 - 15
core/cmdbsource.class.inc.php

@@ -168,23 +168,10 @@ class CMDBSource
 	public static function Query($sSQLQuery)
 	{
 		// Add info into the query as a comment, for easier error tracking
+	  	// disabled until we need it really!
 		//
-		//if ($user_contact)	$aTraceInf['userID'] = $user_contact->get_key();
 		//$aTraceInf['file'] = __FILE__;
-		if ($_SERVER['REQUEST_URI'])	$aTraceInf['requestURI'] = $_SERVER['REQUEST_URI'];
-		$i = 0;
-		foreach(debug_backtrace() as $aCallData) 
-		{
-			$sClass = key_exists("class", $aCallData) ? $aCallData["class"]."::" : "";
-	  		//if ($aCallData['function'] !== 'mysql_simple_query' AND $sClass !== 'r2_set::')
-	  		//{
-	  			if ($i == 3) break;
-				$aTraceInf['function'.$i] =  $sClass.$aCallData["function"]." on line ".$aCallData['line'];
-				$i++;
-	  		//}
-	  	}
-	  	// disabled until we need it really!
-		// $sSQLQuery = $sSQLQuery.MyHelpers::MakeSQLComment($aTraceInf);
+		// $sSQLQuery .= MyHelpers::MakeSQLComment($aTraceInf);
 	  
 		$mu_t1 = MyHelpers::getmicrotime();
 		$result = mysql_query($sSQLQuery, self::$m_resDBLink);