From a161110a6ba10a43df67179263d62f201631e88d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 7 May 2003 21:00:36 +0000 Subject: - Applied Michael Caerwyn's "%s -> %d" patch. - Changed all occurences of '%d' to %d as suggested on the mailing list. --- includes/common.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 0bed53fde..85ebb076b 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -38,7 +38,7 @@ function error_handler($errno, $message, $filename, $line, $variables) { function watchdog($type, $message, $link = NULL) { global $user; - db_query("INSERT INTO watchdog (uid, type, message, link, location, hostname, timestamp) VALUES ('%d', '%s', '%s', '%s', '%s', '%s', '%s')", $user->uid, $type, $message, $link, request_uri(), getenv("REMOTE_ADDR"), time()); + db_query("INSERT INTO watchdog (uid, type, message, link, location, hostname, timestamp) VALUES (%d, '%s', '%s', '%s', '%s', '%s', %d)", $user->uid, $type, $message, $link, request_uri(), getenv("REMOTE_ADDR"), time()); } function throttle($type, $rate) { @@ -659,7 +659,7 @@ function cache_clear_all($cid = NULL) { db_query("DELETE FROM cache WHERE expire <> 0"); } else { - db_query("DELETE FROM cache WHERE cid = '%d'", $cid); + db_query("DELETE FROM cache WHERE cid = %d", $cid); } } -- cgit v1.2.3