Commit 1c0df08b authored by dmorley's avatar dmorley
Browse files

fix array

parent c576dcf5
......@@ -25,7 +25,6 @@ cp config.php.example config.php (all fields required)
If you need to setup your Postgresql/DB:
```
sudo adduser podupuser
sudo -u postgres bash -c "psql -c \"CREATE USER podupuser WITH PASSWORD 'MYpassword';\""
sudo -u postgres bash -c "psql -c \"CREATE DATABASE podupdb;\""
sudo -u postgres bash -c "psql -c \"GRANT ALL PRIVILEGES ON DATABASE podupdb TO podupuser;\""
......
......@@ -48,10 +48,11 @@ echo 'Score for this pod is ' . $pod['score'] . ' out of 100<br>';
echo 'Detected language of this pod is ' . ($pod['detectedlanguage'] ? $iso->languageByCode1($pod['detectedlanguage']) : '') . '<br>';
echo '<br>';
$services = json_decode($pod['services'] ?? '[]') ?: [];
if ($services) {
$services = json_decode($pod['services'], true);
($pod['service_xmpp'] ?? false) && $services[] = 'xmpp';
if (!empty($services)) {
echo 'Services this pod/node offers are: ';
($pod['service_xmpp'] ?? false) && $services[] = 'xmpp';
echo implode(', ', $services);
echo '<br><br>';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment