summaryrefslogtreecommitdiffstats
path: root/modules/main.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2016-02-22 09:58:53 +0100
committerSimon Rettberg2016-02-22 09:58:53 +0100
commit19b1fc7a8a2be4b7ba600ce73e50fc87562de274 (patch)
tree3736d50c076f88ca9d28bda63e09e1b80c1a5ed4 /modules/main.inc.php
parent[main] Add warning if ipxe binary needs recompile (diff)
downloadslx-admin-19b1fc7a8a2be4b7ba600ce73e50fc87562de274.tar.gz
slx-admin-19b1fc7a8a2be4b7ba600ce73e50fc87562de274.tar.xz
slx-admin-19b1fc7a8a2be4b7ba600ce73e50fc87562de274.zip
sd-gkmdth DTHOSTROJSTDH
Diffstat (limited to 'modules/main.inc.php')
-rw-r--r--modules/main.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/main.inc.php b/modules/main.inc.php
index 7963c8a7..9af1afef 100644
--- a/modules/main.inc.php
+++ b/modules/main.inc.php
@@ -16,7 +16,7 @@ class Page_Main extends Page
$this->sysconfig = !file_exists(CONFIG_HTTP_DIR . '/default/config.tgz');
$this->minilinux = !file_exists(CONFIG_HTTP_DIR . '/default/kernel') || !file_exists(CONFIG_HTTP_DIR . '/default/initramfs-stage31') || !file_exists(CONFIG_HTTP_DIR . '/default/stage32.sqfs');
$this->vmstore = !is_array(Property::getVmStoreConfig());
- $this->ipxe = true || !preg_match('/^\d+\.\d+\.\d+\.\d+$/', Property::getServerIp());
+ $this->ipxe = !preg_match('/^\d+\.\d+\.\d+\.\d+$/', Property::getServerIp());
Property::setNeedsSetup(($this->sysconfig || $this->minilinux || $this->vmstore || $this->ipxe) ? 1 : 0);
$res = Database::queryFirst("SELECT Count(*) AS cnt FROM sat.imageversion WHERE deletestate = 'SHOULD_DELETE'");
$this->delPending = isset($res['cnt']) ? $res['cnt'] : 0;