Commit eb5e19f0 authored by Dries's avatar Dries
Browse files

- Patch #173287 by webernet: missing {} in SQL query.

parent ab171575
......@@ -416,7 +416,7 @@ function upload_save(&$node) {
function upload_delete($node) {
$files = array();
$result = db_query('SELECT DISTINCT f.* FROM upload u INNER JOIN files f ON u.fid = f.fid WHERE u.nid = %d', $node->nid);
$result = db_query('SELECT DISTINCT f.* FROM {upload} u INNER JOIN {files} f ON u.fid = f.fid WHERE u.nid = %d', $node->nid);
while ($file = db_fetch_object($result)) {
$files[$file->fid] = $file;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment