projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86830be
)
fixed missing $sql warning
author
skodak
<skodak>
Tue, 9 Oct 2007 13:04:33 +0000
(13:04 +0000)
committer
skodak
<skodak>
Tue, 9 Oct 2007 13:04:33 +0000
(13:04 +0000)
lib/dmllib.php
patch
|
blob
|
history
diff --git
a/lib/dmllib.php
b/lib/dmllib.php
index d7d2f6e96588a595adacf10153be6af37231a512..add5003c60a99311bacfc3741580852601708f08 100644
(file)
--- a/
lib/dmllib.php
+++ b/
lib/dmllib.php
@@
-1359,7
+1359,8
@@
function delete_records_select($table, $select='') {
$select = 'WHERE '.$select;
}
- $rs = $db->Execute('DELETE FROM '. $CFG->prefix . $table .' '. $select);
+ $sql = 'DELETE FROM '. $CFG->prefix . $table .' '. $select;
+ $rs = $db->Execute($sql);
if (!$rs) {
debugging($db->ErrorMsg() .'<br /><br />'. $sql);
if (!empty($CFG->dblogerror)) {