Skip to content

Commit a7b2d24

Browse files
committed
Fix unused variables
1 parent e366c5b commit a7b2d24

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/GaletteLegalNotices/Entity/Settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public function store(): bool
295295

296296
$stmt = $this->zdb->sql->prepareStatementForSqlObject($update);
297297

298-
foreach (self::$defaults as $k => $v) {
298+
foreach (array_keys(self::$defaults) as $k) {
299299
Analog::log('Storing Legal Notices ' . $k, Analog::DEBUG);
300300

301301
$value = $this->settings[$k];

lib/GaletteLegalNotices/PluginGaletteLegalnotices.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public static function getMenusContents(): array
4949
global $login;
5050
/** @var Db $zdb */
5151
global $zdb;
52-
$settings = new Settings($zdb);
5352
$menus = [];
5453
$items = [];
5554

0 commit comments

Comments
 (0)