Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/packages/pkginfo.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-12-10 15:41:35 +0100
committerErich Eckner <git@eckner.net>2018-12-10 15:41:35 +0100
commit654f9a542d64fdc9a5efb3c8ac08cc7553aa69ae (patch)
tree1ad72da29f54bf70bc105804958cf911e920498f /packages/pkginfo.php
parent44ee11f1cd56869d7706269f529f5bec446d38f8 (diff)
packages/pkginfo.php: fix "Only variables should be passed by reference" warning
Diffstat (limited to 'packages/pkginfo.php')
-rw-r--r--packages/pkginfo.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/pkginfo.php b/packages/pkginfo.php
index eac3b09..8265bc7 100644
--- a/packages/pkginfo.php
+++ b/packages/pkginfo.php
@@ -8,7 +8,9 @@ require_once BASE . "/lib/style.php";
$memcache = new Memcache;
$memcache -> connect('localhost', 11211) or die ('Memcached Connection Error');
$pkgapi_reachable = $memcache -> get('pkgapi_reachable');
- $tld = array_pop((explode('.', $_SERVER['HTTP_HOST'])));
+ $tld = explode('.', $_SERVER['HTTP_HOST']);
+ end($tld);
+ $tld = current($tld);
if (array_key_exists('HTTPS', $_SERVER) && ($_SERVER['HTTPS'] == 'on'))
$protocol = 'https';
else