summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'shared/classes/configuration.php')
-rw-r--r--shared/classes/configuration.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/classes/configuration.php b/shared/classes/configuration.php
index c6d5766..c7795f4 100644
--- a/shared/classes/configuration.php
+++ b/shared/classes/configuration.php
@@ -48,6 +48,7 @@ class sql_configuration extends conf_build_common {
}
}
$build=new sql_build();
+ $build->visibility='public';
$build->init();
$build->name=$name;
$build->module=$this->module;
@@ -65,7 +66,7 @@ class sql_configuration extends conf_build_common {
// Returns an array of the IDs of all the builds that report this configuration as their source
public function get_builds() {
global $S;
- $r=$S['pdo']->query('SELECT `build` FROM `buildopts` WHERE `name`="configuration" AND `value`="'.$this->id.'"');
+ $r=query('SELECT `build` FROM `buildopts` WHERE `name`="configuration" AND `value`="'.$this->id.'"');
if ($r->rowCount()) {
$builds=array();
while ($b=$r->fetch(PDO::FETCH_COLUMN)) {