Kyberia v2.3 - 1st revision from SVN (Without patches of kyberia.sk team)
[mirrors/Kyberia-bloodline.git] / inc / eventz / unbook.inc
index 17c76262d7aca70aa19d82ac0fc61dd0d71da8ed..e35d4c7ccbc0722ea30b045dd42783be7665777c 100644 (file)
@@ -1,14 +1,8 @@
 <?php
-/* This program is free software. It comes without any warranty, to
- * the extent permitted by applicable law. You can redistribute it
- * and/or modify it under the terms of the Do What The Fuck You Want
- * To Public License, Version 2, as published by Sam Hocevar. See
- * http://sam.zoy.org/wtfpl/COPYING for more details. */
-
        function unbook() {
 
                global $db,$error,$node;
-               $q="update neurons set link='soft' where synapse_creator='".$_SESSION['user_id']."' and peripheral='".$node['node_id']."' and link='bookmark'";
+               $q="update neurons set link='soft' where synapse_creator='".$_SESSION['user_id']."' and src='".$node['node_id']."' and link='bookmark'";
                $result=$db->update($q);
 
                $q="update node_access set last_visit='',node_bookmark='no' where user_id='".$_SESSION['user_id']."' and node_id='".$node['node_id']."'";
@@ -23,4 +17,4 @@
                        return false;
                }
        }
-?>
\ No newline at end of file
+?>
This page took 0.089753 seconds and 4 git commands to generate.