|
From: Jon O. <jon...@us...> - 2008-02-18 18:36:24
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31249 Modified Files: Tag: core28x mx_functions.php Log Message: Minor sql bug Index: mx_functions.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions.php,v retrieving revision 1.72.2.3 retrieving revision 1.72.2.4 diff -C2 -d -r1.72.2.3 -r1.72.2.4 *** mx_functions.php 10 Feb 2008 21:17:54 -0000 1.72.2.3 --- mx_functions.php 18 Feb 2008 18:36:20 -0000 1.72.2.4 *************** *** 59,63 **** global $db; ! $sql = "SELECT COUNT(*) AS total FROM $table WHERE $idfield = $id"; if( !($result = $db->sql_query($sql)) ) { --- 59,63 ---- global $db; ! $sql = "SELECT COUNT(*) AS total FROM $table WHERE $idfield = '$id'"; if( !($result = $db->sql_query($sql)) ) { |