From 60e846a09aaf92c9530ac5c7fba90f2ea6a5a28f Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 25 Mar 2011 23:44:37 +0000 Subject: fix: store collection name --- weave_storage.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/weave_storage.php b/weave_storage.php index d02aae8..455879b 100644 --- a/weave_storage.php +++ b/weave_storage.php @@ -52,7 +52,6 @@ class WeaveStorage array_pop($path); array_push($path, $db_name); $db_name = implode('/', $path); - $create_tables = !file_exists($db_name); try @@ -204,7 +203,7 @@ class WeaveStorage $sth = $this->_dbh->prepare($insert_stmt); $sth->bindParam(':username', $this->_username); $id=$wbo->id();$sth->bindParam(':id', $id); - $col=$wbo->collection();$sth->bindParam(':collection', $coll); + $coll=$wbo->collection();$sth->bindParam(':collection', $coll); $parent=$wbo->parentid();$sth->bindParam(':parentid', $parent); $pred=$wbo->predecessorid();$sth->bindParam(':predecessorid', $pred); $depth=$wbo->depth();$sth->bindParam(':depth', $depth); -- cgit v1.2.3