Subversion-Projekte lars-tiefland.ci

Revision

Revision 2049 | Revision 2242 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 2049 Revision 2107
Zeile 206... Zeile 206...
206
	public function write($session_id, $session_data)
206
	public function write($session_id, $session_data)
207
	{
207
	{
208
		// Prevent previous QB calls from messing with our queries
208
		// Prevent previous QB calls from messing with our queries
209
		$this->_db->reset_query();
209
		$this->_db->reset_query();
Zeile 210... Zeile -...
210
 
-
 
211
		if ($this->_lock === FALSE)
-
 
212
		{
-
 
213
			return $this->_fail();
-
 
214
		}
210
 
215
		// Was the ID regenerated?
211
		// Was the ID regenerated?
216
		elseif ($session_id !== $this->_session_id)
212
		if (isset($this->_session_id) && $session_id !== $this->_session_id)
217
		{
213
		{
218
			if ( ! $this->_release_lock() OR ! $this->_get_lock($session_id))
214
			if ( ! $this->_release_lock() OR ! $this->_get_lock($session_id))
219
			{
215
			{
220
				return $this->_fail();
216
				return $this->_fail();
Zeile 221... Zeile 217...
221
			}
217
			}
222
 
218
 
223
			$this->_row_exists = FALSE;
219
			$this->_row_exists = FALSE;
-
 
220
			$this->_session_id = $session_id;
-
 
221
		}
-
 
222
		elseif ($this->_lock === FALSE)
-
 
223
		{
Zeile 224... Zeile 224...
224
			$this->_session_id = $session_id;
224
			return $this->_fail();
225
		}
225
		}
226
 
226
 
227
		if ($this->_row_exists === FALSE)
227
		if ($this->_row_exists === FALSE)