From 458078b50b26105b8147b4d492c9d4f2796da4eb Mon Sep 17 00:00:00 2001 From: adam Date: Sun, 14 Feb 2021 12:22:13 +0200 Subject: trash code and hacks --- php/database.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'php/database.php') diff --git a/php/database.php b/php/database.php index 57aac3d..c951576 100644 --- a/php/database.php +++ b/php/database.php @@ -472,11 +472,14 @@ require_once "node.php"; $prep->bindParam(':code',$code); if($users=="") { - $prep->bindParam(':is_public',true); + $is_public=1; }else { - $prep->bindParam(':is_public',false); + $is_public=0; + error_log("shared with $users is set to public=$is_public"); } + $prep->bindParam(':is_public',$is_public); + if($prep->execute()==false) { error_log("could not create shared node in create_shared_node"); @@ -620,6 +623,7 @@ require_once "node.php"; $nod->node_id=$ret["node_id"]; $nod->password=$ret["passcode"]; $nod->code=$ret["code"]; + $nod->is_public=$ret["is_public"]; return $nod; } -- cgit v1.2.3