aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Cache_query.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Daemon/Cache_query.php')
-rw-r--r--Zotlabs/Daemon/Cache_query.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Daemon/Cache_query.php b/Zotlabs/Daemon/Cache_query.php
index cd9597e9a..d6f66f1f0 100644
--- a/Zotlabs/Daemon/Cache_query.php
+++ b/Zotlabs/Daemon/Cache_query.php
@@ -11,6 +11,7 @@ class Cache_query {
if(! $argc == 3)
return;
+ $r = null;
$key = $argv[1];
$pid = get_config('procid', $key, false);
@@ -28,8 +29,10 @@ class Cache_query {
$arr = json_decode(base64_decode($argv[0]), true);
$r = call_user_func_array('q', $arr);
- if($r)
+
+ if(is_array($r)) {
Cache::set($key, serialize($r));
+ }
del_config('procid', $key);