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:
@@ -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>';
|
||||
|
||||
Reference in New Issue
Block a user