aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xweb/api/public/config3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/api/public/config b/web/api/public/config
index dd8ccc1..0f0d322 100755
--- a/web/api/public/config
+++ b/web/api/public/config
@@ -15,6 +15,9 @@ my $hostname = $ENV{'HTTP_HOST'} || "";
my $q2 = $nms::web::dbh->prepare('select id, publicvhost, shortname, data from config order by id desc limit 1;');
$q2->execute();
+$nms::web::json{'config'}{'data'} = 0;
+$nms::web::json{'config'}{'shortname'} = "notset";
+$nms::web::json{'config'}{'publicvhost'} = "notset";
while (my $ref = $q2->fetchrow_hashref()) {
$nms::web::json{'config'} = $ref;
$nms::web::json{'config'}{'data'} = JSON::XS::decode_json($ref->{'data'});