Skip to content

Commit 5f45d56

Browse files
committed
2.1.1
1 parent dd864fc commit 5f45d56

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

code/Fields.class.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public static function getClientFields($page_num = 1, $num_per_page = 10, $searc
174174
$where_clause = "";
175175
if (!empty($search)) {
176176
$clauses = array();
177-
while (list($key, $value) = each($search)) {
177+
foreach ($search as $key => $value) {
178178
$clauses[] = "$key = '$value'";
179179
}
180180
if (!empty($clauses)) {
@@ -438,14 +438,13 @@ public static function displayFields($location, $template_vars)
438438
$smarty->assign("fields", $field_info);
439439

440440
// tack on all the template vars passed by the page
441-
while (list($key, $value) = each($template_vars)) {
441+
foreach ($template_vars as $key => $value) {
442442
$smarty->assign($key, $value);
443443
}
444444

445445
echo $smarty->fetch("$root_dir/modules/extended_client_fields/smarty_plugins/section_html.tpl");
446446
}
447447

448-
449448
/**
450449
* This function is called whenever the administrator updates the client, for either of the
451450
* main or settings tabs.

code/Module.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class Module extends FormToolsModule
1919
protected $author = "Ben Keen";
2020
protected $authorEmail = "[email protected]";
2121
protected $authorLink = "https://formtools.org";
22-
protected $version = "2.1.0";
23-
protected $date = "2019-01-10";
22+
protected $version = "2.1.1";
23+
protected $date = "2023-04-03";
2424
protected $originLanguage = "en_us";
2525
protected $jsFiles = array(
2626
"{MODULEROOT}/scripts/field_options.js"

0 commit comments

Comments
 (0)