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() {
|
private static function _get_modules() {
|
||||||
$modules = array();
|
$modules = array();
|
||||||
foreach (db::query("SELECT * FROM `modules` ORDER BY `id`")
|
foreach (db::build()->select("*")->from("modules")->order_by("id")->execute() as $row) {
|
||||||
->execute() as $row) {
|
|
||||||
$modules["{$row->name}:$row->id"] = $row->name;
|
$modules["{$row->name}:$row->id"] = $row->name;
|
||||||
}
|
}
|
||||||
return $modules;
|
return $modules;
|
||||||
|
Reference in New Issue
Block a user