Skip to content

Commit 32ca098

Browse files
committed
Merge pull request #34 from serebro/patch-1
Docs small fix
2 parents 69bc197 + bf3befb commit 32ca098

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/commands.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ foreach($databases["databases"] as $database) {
1919
$listcollections = new MongoDB\Driver\Command(array("listCollections" => 1));
2020
$retval = $manager->executeCommand($database->name, $listcollections);
2121
$collections = $retval->toArray();
22-
foreach($collections["collections"] as $collection) {
22+
foreach($collections as $collection) {
2323
echo "\t- ", $collection->name, "\n";
2424
}
2525
}
@@ -53,7 +53,7 @@ $createuser = new MongoDB\Driver\Command($command);
5353
try {
5454
$result = $manager->executeCommand("admin", $createuser);
5555
$response = $result->toArray();
56-
if ($reponse["ok"]) {
56+
if ($response["ok"]) {
5757
echo "User created\n";
5858
}
5959
} catch(Exception $e) {

0 commit comments

Comments
 (0)