From e2960add2fcb9fbe3b260e323e6f4c543f063271 Mon Sep 17 00:00:00 2001 From: Olov Danielson Date: Mon, 25 Jan 2010 16:51:58 +0000 Subject: [PATCH] added '' around yk_publicname --- ykval-import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ykval-import.php b/ykval-import.php index f0fc917..ea3cb76 100755 --- a/ykval-import.php +++ b/ykval-import.php @@ -45,7 +45,7 @@ while ($res=fscanf(STDIN, "%d\t%d\t%d\t%s\t%d\t%d\t%d\t%d\t%s\t%s\t")) { ",yk_high='" . $params["yk_high"] . "' " . ",nonce='" . $params["nonce"] . "' " . ",notes='" . $params["notes"] . "' " . - "WHERE yk_publicname=" . $params['yk_publicname'] . " AND " . + "WHERE yk_publicname='" . $params['yk_publicname'] . "' AND " . "(".$params['yk_counter'].">yk_counter or (".$params['yk_counter']."=yk_counter and " . $params['yk_use'] . ">yk_use))";