english/libraries/joomla/database/table/session.php
/**
	 * Overloaded delete method
	 *
	 * We must override it because of the non-integer primary key
	 *
	 * @return  mixed  True if successful otherwise an error message
	 *
	 * @since   11.1
	 */
Overloaded delete method
We must override it because of the non-integer primary key

@return  mixed  True if successful otherwise an error message


Overloaded delete method We must override it because of the non - integer primary key @return mixed True if successful otherwise an error message
function delete($oid=null)
	{
		$k = $this->_tbl_key;
		if ($oid) {
			$this->$k = $oid;
		}
		$query = 'DELETE FROM '.$this->_db->quoteName($this->_tbl).
				' WHERE '.$this->_tbl_key.' = '. $this->_db->Quote($this->$k);
		$this->_db->setQuery($query);
		if ($this->_db->query())
		{
			return true;
		}
		else
		{
			$this->setError($this->_db->getErrorMsg());
			return false;
		}
	}
function delete ( $ oid = null ) { $ k = $ this -> _tbl_key ; if ( $ oid ) { $ this -> $ k = $ oid ; } $ query = 'DELETE FROM ' . $ this -> _db -> quoteName ( $ this -> _tbl ) . ' WHERE ' . $ this -> _tbl_key . ' = ' . $ this -> _db -> Quote ( $ this -> $ k ) ; $ this -> _db -> setQuery ( $ query ) ; if ( $ this -> _db -> query ( ) ) { return true ; } else { $ this -> setError ( $ this -> _db -> getErrorMsg ( ) ) ; return false ; } }
Overloaded delete method
 We must override it because of the non-integer primary key
Overloaded delete method We must override it because of the non - integer primary key
//if (!$this->canDelete($msg)) //{ //	return $msg; //}