Index: core/print_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/print_api.php,v
retrieving revision 1.174
diff -u -p -d -r1.174 print_api.php
--- core/print_api.php	29 Jul 2007 17:32:14 -0000	1.174
+++ core/print_api.php	4 Aug 2007 06:59:28 -0000
@@ -1524,9 +1524,9 @@
 	# this function should rarely (if ever) be reached.  instead the db_()
 	# functions should trap (although inelegantly).
 	function print_sql_error( $p_query ) {
-		global $MANTIS_ERROR, $g_administrator_email;
+		global $g_administrator_email;
 
-		PRINT $MANTIS_ERROR[ERROR_SQL];
+		PRINT error_string( ERROR_SQL );
 		print_email_link( $g_administrator_email, lang_get( 'administrator' ) );
 		PRINT "<br />$p_query;<br />";
 	}
