Skip to content

Commit

Permalink
Fix email and sql
Browse files Browse the repository at this point in the history
  • Loading branch information
swarzesherz committed Mar 10, 2014
1 parent 0fad26e commit 415b8ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions biblat.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ CREATE TABLE "logSolicitudDocumento" (
session_id character varying(40)
);

CREATE TABLE "advacedSearchHash"
CREATE TABLE "advancedSearchHash"
(
hash character varying(32) NOT NULL,
search character varying,
query character varying,
CONSTRAINT "advacedSearchHash_pkey" PRIMARY KEY (hash)
);

CREATE OR REPLACE FUNCTION "advacedSearchHashInsert"(character varying(32), character varying, character varying)
CREATE OR REPLACE FUNCTION "advancedSearchHashInsert"(character varying(32), character varying, character varying)
RETURNS text
AS $$
DECLARE
Expand All @@ -34,12 +34,12 @@ CREATE OR REPLACE FUNCTION "advacedSearchHashInsert"(character varying(32), char
vquery ALIAS FOR $3;
retval text;
BEGIN
UPDATE "advacedSearchHash" SET search=vsearch, query=vquery
UPDATE "advancedSearchHash" SET search=vsearch, query=vquery
WHERE hash=vhash;
IF (FOUND) THEN
retval := 'registro actualizado';
ELSE
INSERT INTO "advacedSearchHash" (hash, search, query)
INSERT INTO "advancedSearchHash" (hash, search, query)
VALUES (vhash, vsearch, vquery);
retval := 'registro insertado';
END IF;
Expand Down
6 changes: 3 additions & 3 deletions ci/application/controllers/revista.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ public function solicitudDocumento(){
$this->load->library('email');
$this->email->initialize($config);
$this->email->from('[email protected]', 'Solicitud Biblat');
//$this->email->to('[email protected]');
$this->email->to('[email protected]');
//$this->email->cc('[email protected]');
$this->email->to('[email protected]');
//$this->email->to('[email protected]');
$this->email->cc('[email protected]');
$this->email->subject('Solicitud de documento Biblat');
$data = $_POST;
$data['fichaDocumento'] = $this->articulo($data['revista'], $data['articulo'], 'true');
Expand Down

0 comments on commit 415b8ed

Please sign in to comment.