From fde30da74ca632d186a9536d38e7c24b4efb760c Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 30 Jul 2023 17:59:15 +0300 Subject: [PATCH] fix variable name --- cli/yggo.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/yggo.php b/cli/yggo.php index dc7d9b6..662188e 100644 --- a/cli/yggo.php +++ b/cli/yggo.php @@ -146,13 +146,13 @@ switch ($argv[1]) { $db->beginTransaction(); - foreach ($db->getHostPageSnapStorages($hostPageSnapId) as $hostPageSnapStorage) { + foreach ($db->getHostPageSnapStorages($hostPageSnap->hostPageSnapId) as $hostPageSnapStorage) { $db->deleteHostPageSnapDownloads($hostPageSnapStorage->hostPageSnapStorageId); } - $db->deleteHostPageSnapStorages($hostPageSnapId); - $db->deleteHostPageSnap($hostPageSnapId); + $db->deleteHostPageSnapStorages($hostPageSnap->hostPageSnapId); + $db->deleteHostPageSnap($hostPageSnap->hostPageSnapId); CLI::danger(sprintf(_('delete snap index: #%s file: %s not found in the any of storage;'), $hostPageSnap->hostPageSnapId, $filename));