X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fbackend%2Fmysql%2Fbackend.inc;h=d0861e1bd0166329903ca001a0a05389feb0499d;hb=92ac14b2de96259830a9a35cfd4f2f1485006334;hp=563caf63c9de6ced2b7ea313e1ed62793b4ec0c0;hpb=637e2914f5777984c69b5df67f012de9059dbb11;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/backend/mysql/backend.inc b/wwwroot/backend/mysql/backend.inc index 563caf6..d0861e1 100644 --- a/wwwroot/backend/mysql/backend.inc +++ b/wwwroot/backend/mysql/backend.inc @@ -586,7 +586,7 @@ public static function getLinkedNodes($node_id,$orderby,$offset,$listing_amount) if ((!is_numeric($node_id)) or (!is_numeric($offset)) or (!is_numeric($listing_amount))) - { return -1; } // XXX check return value by caller? + { return false; } // XXX check return value by caller? $orderby=db_escape_string($orderby); $q="select neurons.synapse_created,node_content,author.login,linker.login as linker,nodes.* from neurons @@ -604,7 +604,7 @@ public static function getLinkedNodes($node_id,$orderby,$offset,$listing_amount) $array['node_created']=$array['synapse_created']; $get_linked_nodes[]=$array; } - return $get_linked_nodes; + return (isset($get_linked_nodes) ? $get_linked_nodes : false); } // getThreadedChildren