Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-08-18 04:36:20 +0300
committerOlivier Paroz <github@oparoz.com>2015-08-18 04:36:20 +0300
commit5356de77e3339a52111a2cb37ecf89f6146f2a0f (patch)
tree2e6c341b0954a6357812b3e3673859f38efffecd /utility
parenta5c1eb0a9b46c2463011f27a3edd58fbf4f32876 (diff)
Only list media files we support
Diffstat (limited to 'utility')
-rw-r--r--utility/eventsource.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/utility/eventsource.php b/utility/eventsource.php
index 63bf1d72..d874ae7e 100644
--- a/utility/eventsource.php
+++ b/utility/eventsource.php
@@ -73,7 +73,7 @@ class EventSource implements \OCP\IEventSource {
$type = null;
}
- if ($type) {
+ if (!empty($type)) {
echo 'event: ' . $type . PHP_EOL;
}
echo 'data: ' . json_encode($data) . PHP_EOL;