Commit 1c0df08b authored by dmorley's avatar dmorley

fix array

parent c576dcf5
...@@ -25,7 +25,6 @@ cp config.php.example config.php (all fields required) ...@@ -25,7 +25,6 @@ cp config.php.example config.php (all fields required)
If you need to setup your Postgresql/DB: 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 USER podupuser WITH PASSWORD 'MYpassword';\""
sudo -u postgres bash -c "psql -c \"CREATE DATABASE podupdb;\"" 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;\"" 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>'; ...@@ -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 'Detected language of this pod is ' . ($pod['detectedlanguage'] ? $iso->languageByCode1($pod['detectedlanguage']) : '') . '<br>';
echo '<br>'; echo '<br>';
$services = json_decode($pod['services'] ?? '[]') ?: []; $services = json_decode($pod['services'], true);
if ($services) { ($pod['service_xmpp'] ?? false) && $services[] = 'xmpp';
if (!empty($services)) {
echo 'Services this pod/node offers are: '; echo 'Services this pod/node offers are: ';
($pod['service_xmpp'] ?? false) && $services[] = 'xmpp';
echo implode(', ', $services); echo implode(', ', $services);
echo '<br><br>'; 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