X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=manifold%2Fjs%2Fmanifold.js;h=bae00c7c012a9e005bd5320b313a60eeef8e2083;hb=e256853ef256809864927b91deb42e713baea769;hp=927924f38bb931b58446dfa52ec806f94e7d313c;hpb=18710ca42c0eb6c72ab5ce2449a9676dd6d491bd;p=myslice.git diff --git a/manifold/js/manifold.js b/manifold/js/manifold.js index 927924f3..bae00c7c 100644 --- a/manifold/js/manifold.js +++ b/manifold/js/manifold.js @@ -149,7 +149,10 @@ var manifold = { publish_result: function(query, result) { /* Publish an update announce */ var channel="/results/" + query.query_uuid + "/changed"; - if (manifold.asynchroneous_debug) messages.debug("publishing result on " + channel); + if (manifold.asynchroneous_debug) + messages.debug("publishing result on " + channel); + if (typeof result === 'undefined') + result = []; jQuery.publish(channel, [result, query]); },