In execute_sql, if feedback is not required then don't even show the

ADOdb feedback.  Makes those careful DROPs look less frightening!  :-)
This commit is contained in:
moodler
2004-11-18 03:36:52 +00:00
parent 275c630a4a
commit 1734f08ea4
+8
View File
@@ -44,8 +44,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"><strong>'. get_string('success') .'</strong></font></p>';