Skip to content

Commit a6dc453

Browse files
author
Jippe Holwerda
committed
PHP 5.3 compatible syntax.
1 parent 4e730d5 commit a6dc453

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/class-tiny-settings.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,10 @@ public function get_preserve_options() {
196196
$settings = get_option(self::get_prefixed_name('preserve_data'));
197197
$options = array();
198198
if ($settings) {
199-
foreach (array_keys($settings) as &$setting) {
200-
if ($settings[$setting] === "on") {
201-
array_push($options, $setting);
199+
$keys = array_keys($settings);
200+
foreach ($keys as &$key) {
201+
if ($settings[$key] === "on") {
202+
array_push($options, $key);
202203
}
203204
}
204205
}

0 commit comments

Comments
 (0)