Fix warning "references should be passed by variable"

This commit is contained in:
Johannes Meyer 2014-10-07 15:57:00 +02:00
parent efffe10bad
commit 627a19a2a9
1 changed files with 2 additions and 1 deletions

View File

@ -126,7 +126,8 @@ class Platform
if (substr(self::$fqdn, 0, strlen(self::$hostname)) === self::$hostname) {
self::$domain = substr(self::$fqdn, strlen(self::$hostname) + 1);
} else {
self::$domain = array_shift(preg_split('~\.~', self::$hostname, 2));
$parts = preg_split('~\.~', self::$hostname, 2);
self::$domain = array_shift($parts);
}
}