meteo.php

f6a19e3a8b init

2019-03-12 01:32:14


1448a12282 diff

2019-03-13 11:31:44

 $output = trim(shell_exec($command));
 
 if (!empty($output)) {
-    try {
-        $city = explode(', ', $output)[0];
-
-        echo block(
-            'meteo',
-            [
-                'full_text' => pspan($output, '#fff'),
-            ]
-        );
-    } catch(\Exception $e) {
-    }
+    echo block(
+        'meteo',
+        [
+            'full_text' => pspan($output, '#fff'),
+        ]
+    );
 }
 
 if (getenv('BLOCK_BUTTON') === '1') {