Zz9pzza
User
| Posts: 144 |   |
 

|
Re: Missing certificate results in a SQL syntax er - 2008/01/23 17:01
I sent this to the admin a day or two ago.
This is a minor change that I made to eliminate an error message it might not be the right solution but there is an issue around this bit.
diff -Naur ../swiss/base/rating.php ../swissbeta/base/rating.php --- ../swiss/base/rating.php 2008-01-10 20:20:34.690712885 +0000 +++ ../swissbeta/base/rating.php 2008-01-21 19:39:09.492380476 +0000 @@ -50,6 +50,7 @@
function get_cert_name($cert_id) { + if ( $cert_id == NULL ) return NULL ; return db_value("select name from certificates where cert_id=$cert_id"); }
-- Server: Debian 4.0, Ram: 3 gig , Disc : 5 TB Client: Buffalo LinkTheatre, dLAN 200 AV MySQL 5.0.32-Debian_7etch1-log |