GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Removed multiple require()
[mirrors/Kyberia-bloodline.git]
/
wwwroot
/
backend
/
mysql
/
backend.inc
diff --git
a/wwwroot/backend/mysql/backend.inc
b/wwwroot/backend/mysql/backend.inc
index bdc85152631c56af2cebf295cff829752571a5da..87e1d2d744bd09297fafed0b8050e5eb81d66d78 100644
(file)
--- a/
wwwroot/backend/mysql/backend.inc
+++ b/
wwwroot/backend/mysql/backend.inc
@@
-363,6
+363,11
@@
function setSynapse($params){
$dst=$params['dst'];
$weight=$params['weight'];
+ // weight could be only positive
+ if ( $weight < 0) {
+ return false;
+ }
+
// if already exists
$q="select count(src) from neurons where dst ='$dst' and src = '$src'";
$set=$db->query($q);
This page took
0.130155 seconds
and
4
git commands to generate.