diff --git a/web/includes/Snapshot.php b/web/includes/Snapshot.php index 2c36306f5..40a22cc9f 100644 --- a/web/includes/Snapshot.php +++ b/web/includes/Snapshot.php @@ -29,6 +29,7 @@ class Snapshot extends ZM_Object { public function delete() { if ( property_exists($this, 'Id') ) { dbQuery('DELETE FROM `Snapshot_Events` WHERE `SnapshotId`=?', array($this->{'Id'})); + dbQuery('DELETE FROM `Snapshots` WHERE `Id`=?', array($this->{'Id'})); } }