diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-05-07 21:00:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-05-07 21:00:36 +0000 |
commit | a161110a6ba10a43df67179263d62f201631e88d (patch) | |
tree | c6b146ed125d82487d6285c259cfb30346c310bc /includes/common.inc | |
parent | 9a62873a4beae8fe620dedcf7ca40954e12cc7cb (diff) | |
download | brdo-a161110a6ba10a43df67179263d62f201631e88d.tar.gz brdo-a161110a6ba10a43df67179263d62f201631e88d.tar.bz2 |
- Applied Michael Caerwyn's "%s -> %d" patch.
- Changed all occurences of '%d' to %d as suggested on the mailing list.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |