Skip to content

Commit 2f13d14

Browse files
RomainLvrstonebuzz
authored andcommitted
Fix direct queries
1 parent 4b9de54 commit 2f13d14

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/container.class.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class %%CLASSNAME%% extends PluginFieldsAbstractContainerInstance
163163
global $DB;
164164
165165
$obj = new self();
166-
return $DB->query("DROP TABLE IF EXISTS `".$obj->getTable()."`");
166+
return $DB->doQuery("DROP TABLE IF EXISTS `".$obj->getTable()."`");
167167
}
168168

169169
static function addField($fieldname, $type, array $options) {

templates/dropdown.class.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class %%CLASSNAME%% extends CommonTreeDropdown {
5050
global $DB;
5151
5252
$obj = new self();
53-
return $DB->query("DROP TABLE IF EXISTS `".$obj->getTable()."`");
53+
return $DB->doQuery("DROP TABLE IF EXISTS `".$obj->getTable()."`");
5454
}
5555

5656
/**

0 commit comments

Comments
 (0)