k_neurons another fix.
[mirrors/Kyberia-bloodline.git] / wwwroot / backend / mysql / backend.inc
index ebc9337ffae0dd9c341f0fb4915b1744822d6d2a..55e633ffbc2fe4ac3f27a320c969b4197f578139 100644 (file)
@@ -326,19 +326,19 @@ function setParent($node_id,$parent_id) {
        return 0;
 }
 
-// XXX TODO
-// 
+// Get nodes sorted by weight_k specific to user
 
 function getKNeurons($user_id,$interval) {
        global $db,$node,$error,$error_messages;
 
        $q="call k_neurons('$user_id','$interval')";
        $set=$db->query($q);
-//     $set->next();
-       return $set;
-}
-
 
+       while ($set->next()) {
+               $k_array[]=$set->getRecord();
+       }
 
+       return $k_array;
 }
 
+}
This page took 0.197759 seconds and 4 git commands to generate.