3 global $db,$error,$node;
4 $node_id = $node['node_id'];
5 $user_id = $_SESSION['user_id'];
6 $friend = $node['node_parent'];
8 if ($user_id != $node['node_creator']) {
9 $error = "nejsi vlastnik tohto priatela";
13 $q = "update nodes set external_link='', node_parent=123456, node_vector='001234560$node_id' where node_id='$node_id' and external_link='session://friend'";
16 $_SESSION['friends']['$friend']=false;