Permalink
Browse files

Backported Martin D's patch to get rid of adodb debug if feedback off…

… in execute_sql to help with trying to fix up the bad constraint in quiz module for postgres
  • Loading branch information...
1 parent 7435a34 commit 61d5adce1e7861790ad1b77b97d40cbcc5f244dc mjollnir_ committed Nov 23, 2004
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/datalib.php
View
@@ -21,8 +21,16 @@ function execute_sql($command, $feedback=true) {
global $db;
+ $olddebug = $db->debug;
+
+ if (!$feedback) {
+ $db->debug = false;
+ }
+
$result = $db->Execute("$command");
+ $db->debug = $olddebug;
+
if ($result) {
if ($feedback) {
echo "<P><FONT COLOR=green><B>".get_string("success")."</B></FONT></P>";

0 comments on commit 61d5adc

Please sign in to comment.