Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 196... Línea 196...
196
		}
196
		}
Línea 197... Línea 197...
197
 
197
 
198
		/**
198
		/**
199
		 * ADODB version as a string.
199
		 * ADODB version as a string.
200
		 */
200
		 */
Línea 201... Línea 201...
201
		$ADODB_vers = 'v5.22.7  2023-11-04';
201
		$ADODB_vers = 'v5.22.8  2025-01-25';
202
 
202
 
203
		/**
203
		/**
204
		 * Determines whether recordset->RecordCount() is used.
204
		 * Determines whether recordset->RecordCount() is used.
Línea 4298... Línea 4298...
4298
	 * @return mixed[]|false
4298
	 * @return mixed[]|false
4299
	 *
4299
	 *
4300
	 */
4300
	 */
4301
	function getAssoc($force_array = false, $first2cols = false)
4301
	function getAssoc($force_array = false, $first2cols = false)
4302
	{
4302
	{
-
 
4303
		global $ADODB_FETCH_MODE;
-
 
4304
 
4303
		/*
4305
		/*
4304
		* Insufficient rows to show data
4306
		* Insufficient rows to show data
4305
		*/
4307
		*/
4306
		if ($this->_numOfFields < 2)
4308
		if ($this->_numOfFields < 2)
4307
			  return;
4309
			  return;
Línea 4320... Línea 4322...
4320
 
4322
 
4321
		/*
4323
		/*
4322
		* Get the fetch mode when the call was executed, this may be
4324
		* Get the fetch mode when the call was executed, this may be
4323
		* different than ADODB_FETCH_MODE
4325
		* different than ADODB_FETCH_MODE
4324
		*/
4326
		*/
4325
		$fetchMode = $this->connection->fetchMode;
4327
		$fetchMode = $this->adodbFetchMode;
4326
		if ($fetchMode == ADODB_FETCH_BOTH) {
4328
		if ($fetchMode == ADODB_FETCH_BOTH || $fetchMode == ADODB_FETCH_DEFAULT) {
4327
			/*
4329
			/*
4328
			* If we are using BOTH, we present the data as if it
4330
			* If we are using BOTH, we present the data as if it
4329
			* was in ASSOC mode. This could be enhanced by adding
4331
			* was in ASSOC mode. This could be enhanced by adding
4330
			* a BOTH_ASSOC_MODE class property
4332
			* a BOTH_ASSOC_MODE class property
Línea 4353... Línea 4355...
4353
 
4355
 
Línea 4354... Línea 4356...
4354
		while (!$this->EOF){
4356
		while (!$this->EOF){
Línea 4355... Línea 4357...
4355
 
4357
 
4356
			$myFields = $this->fields;
4358
			$myFields = $this->fields;
4357
 
4359
 
4358
			if ($fetchMode == ADODB_FETCH_BOTH) {
4360
			if ($fetchMode == ADODB_FETCH_BOTH || $fetchMode == ADODB_FETCH_DEFAULT) {
4359
				/*
4361
				/*
4360
				* extract the associative keys
4362
				* extract the associative keys