From 61d42eee24f12e568e4d6714ab581699778ed886 Mon Sep 17 00:00:00 2001 From: Geza Date: Fri, 25 Oct 2019 16:44:55 +0100 Subject: [PATCH 1/2] $snapshot_id is not defined --- do-php-library.php | 1 + 1 file changed, 1 insertion(+) diff --git a/do-php-library.php b/do-php-library.php index eabf0da..b3b779b 100644 --- a/do-php-library.php +++ b/do-php-library.php @@ -970,6 +970,7 @@ public function getSnapshotById(array $attributes) public function deleteSnapshot(array $attributes) { + $snapshot_id = $attributes['snapshot_id']; $response = $this->doCurl("DELETE", "snapshots/$snapshot_id"); return $response; } From c59a018ecadb6621ec2e8abbf48da0ad812b8306 Mon Sep 17 00:00:00 2001 From: Geza Date: Mon, 28 Oct 2019 21:48:25 +0000 Subject: [PATCH 2/2] Notice: Undefined variable: sroplet_id --- do-php-library.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/do-php-library.php b/do-php-library.php index b3b779b..f583a92 100644 --- a/do-php-library.php +++ b/do-php-library.php @@ -548,7 +548,7 @@ public function createDroplet(array $attributes) public function getDropletById(array $attributes) { $droplet_id = $attributes['droplet_id']; - $response = $this->doCurl("GET", "droplets/$sroplet_id"); + $response = $this->doCurl("GET", "droplets/$droplet_id"); return $response; }