set_synapse update
[mirrors/Kyberia-bloodline.git] / wwwroot / backend / mysql / backend.inc
index ac554ed3691877192c2532a6175d4f2948c0c246..a92deeae52ef3106a845110a95ef22fe29c07961 100644 (file)
@@ -348,12 +348,15 @@ function getKNeurons($user_id,$interval) {
 
 // XXX TODO
 
-function setSynapse($src,$dst,$weight) {
+function setSynapse($params){
        global $db,$node,$error,$error_messages;
 
-       if ((!is_numeric($src)) or (!is_numeric($dst)) or (!is_numeric($weight))) {
+       if ((!is_numeric($params['src'])) or (!is_numeric($params['dst'])) or (!is_numeric($params['weight']))) {
                return false;
        }
+       $src=$params['src'];
+       $dst=$params['dst'];
+       $weight=$params['weight'];
 
        // if already exists
        $q="select src from neurons where dst ='$dst' and src = '$src'";
This page took 0.101364 seconds and 4 git commands to generate.