diff --git a/dist/debian/arsse.dirs b/dist/debian/arsse.dirs new file mode 100644 index 00000000..2e135526 --- /dev/null +++ b/dist/debian/arsse.dirs @@ -0,0 +1 @@ +var/lib/arsse \ No newline at end of file diff --git a/dist/init.sh b/dist/init.sh index 85e28c88..861d1279 100644 --- a/dist/init.sh +++ b/dist/init.sh @@ -16,7 +16,7 @@ PATH=/usr/sbin/:/usr/bin:/sbin:/bin NAME=arsse -DESC=newsfeed synchronization server +DESC="newsfeed synchronization server" PIDFILE=/run/arsse.pid DAEMON=/usr/bin/$NAME diff --git a/lib/Service/Daemon.php b/lib/Service/Daemon.php index 2b429fdd..c77eecfe 100644 --- a/lib/Service/Daemon.php +++ b/lib/Service/Daemon.php @@ -86,7 +86,7 @@ class Daemon { default: fclose($pipe[1]); $result = json_decode(fread($pipe[0], 100), true); - if ($result) { + if (is_array($result)) { [$class, $symbol, $params] = $result; throw new $class($symbol, $params); }