includes/dbal.php
changeset 15 ad5986a53197
parent 1 fe660c52c48f
child 16 64e0d3d4cf14
--- a/includes/dbal.php	Fri Jun 22 18:42:26 2007 -0400
+++ b/includes/dbal.php	Sat Jun 23 09:55:58 2007 -0400
@@ -80,7 +80,7 @@
       ob_clean();
     }
     header('HTTP/1.1 500 Internal Server Error');
-    $bt = $this->sql_backtrace();
+    $bt = $this->latest_query; // $this->sql_backtrace();
     $e = htmlspecialchars(mysql_error());
     if($e=='') $e='<none>';
     if(defined('ENANO_CONFIG_FETCHED')) die_semicritical('Database error', '<h3>An error occurred during a database query.</h3><p>'.$t.'<br />Error returned by MySQL: '.$e.'<br />SQL Backtrace:</p><pre>'.$bt.'</pre>');