Replace straight SQL with db::build() which takes care of the problem that the table name is not wrapped in curly braces so it won't get prefixed properly
This commit is contained in:
parent
da3978cc03
commit
6dd078a38f
@ -24,8 +24,7 @@ class module_manager_Core {
|
||||
|
||||
private static function _get_modules() {
|
||||
$modules = array();
|
||||
foreach (db::query("SELECT * FROM `modules` ORDER BY `id`")
|
||||
->execute() as $row) {
|
||||
foreach (db::build()->select("*")->from("modules")->order_by("id")->execute() as $row) {
|
||||
$modules["{$row->name}:$row->id"] = $row->name;
|
||||
}
|
||||
return $modules;
|
||||
|
Reference in New Issue
Block a user