Exemplo n.º 1
0
 public function store($updateNulls = false)
 {
     $ret = parent::store($updateNulls);
     return $ret;
 }
Exemplo n.º 2
0
	function store() {
		$k = $this->_tbl_key;
		$update = $this->_exists;
		$message = $this->message;
		unset($this->message);
		if (!parent::store())
			return false;
		$this->message = $message;

		if ($update) {
			$query = "UPDATE #__kunena_messages_text SET message={$this->_db->quote($this->message)} WHERE mesid = {$this->$k}";
		} else {
			$query = "INSERT INTO #__kunena_messages_text (mesid, message) VALUES ({$this->$k}, {$this->_db->quote($this->message)})";
		}
		$this->_db->setQuery($query);
		$this->_db->query();

		// Check for an error message.
		if ($this->_db->getErrorNum()) {
			$this->setError($this->_db->getErrorMsg());
			return false;
		}
		return true;
	}
Exemplo n.º 3
0
 function store($updateNulls = false)
 {
     $ret = parent::store($updateNulls);
     if ($ret) {
         // we must reset session, when forum record was changed
         $this->_db->setQuery("UPDATE #__kunena_sessions SET allowed='na'");
         $this->_db->query();
         KunenaError::checkDatabaseError();
     }
     return $ret;
 }