summaryrefslogtreecommitdiffstats
path: root/inc/property.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2014-11-26 21:01:37 +0100
committerSimon Rettberg2014-11-26 21:01:37 +0100
commit177791970ee86a6653b051ee393801ad37134d70 (patch)
tree696fd696c89d4d587365fa7172ab0e184e183f07 /inc/property.inc.php
parentAdd HTTPS config module for webif, update everything to use FileUtil class, m... (diff)
downloadslx-admin-177791970ee86a6653b051ee393801ad37134d70.tar.gz
slx-admin-177791970ee86a6653b051ee393801ad37134d70.tar.xz
slx-admin-177791970ee86a6653b051ee393801ad37134d70.zip
Lots of small bugfixes, proxy config WIP, https config WIP, translation updates, added masterpassword to pxe menu, ...
Diffstat (limited to 'inc/property.inc.php')
-rw-r--r--inc/property.inc.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/inc/property.inc.php b/inc/property.inc.php
index afbdf0de..dd70b8d4 100644
--- a/inc/property.inc.php
+++ b/inc/property.inc.php
@@ -59,9 +59,10 @@ class Property
public static function setServerIp($value)
{
- if ($value !== self::getServerIp())
- Event::serverIpChanged();
+ if ($value === self::getServerIp())
+ return false;
self::set('server-ip', $value);
+ Event::serverIpChanged();
}
public static function getBootMenu()
@@ -159,12 +160,12 @@ class Property
{
return self::get('last-warn-event-id', 0);
}
-
+
public static function setNeedsSetup($value)
{
self::set('needs-setup', $value);
}
-
+
public static function getNeedsSetup()
{
return self::get('needs-setup');