[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [17630]
From: |
nelson . guerra |
Subject: |
[Fmsystem-commits] [17630] |
Date: |
Thu, 18 Jan 2018 18:19:33 -0500 (EST) |
Revision: 17630
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17630
Author: nelson224
Date: 2018-01-18 18:19:32 -0500 (Thu, 18 Jan 2018)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/admin/inc/hook_config.inc.php
Modified: branches/dev-syncromind/admin/inc/hook_config.inc.php
===================================================================
--- branches/dev-syncromind/admin/inc/hook_config.inc.php 2018-01-18
10:13:28 UTC (rev 17629)
+++ branches/dev-syncromind/admin/inc/hook_config.inc.php 2018-01-18
23:19:32 UTC (rev 17630)
@@ -28,8 +28,11 @@
$algos = @mcrypt_list_algorithms();
$found = False;
- while (list ($key, $value) = each ($algos))
- {
+ //while (list ($key, $value) = each ($algos))
+ if (is_array($algos))
+ {
+ foreach($algos as $key => $value)
+ {
$found = True;
/* Only show each once - seems this is a
problem in some installs */
if(!in_array($value,$listed))
@@ -47,7 +50,8 @@
$out .= '<option value="' . $value .
'"' . $selected . '>' . $descr . '</option>' . "\n";
$listed[] = $value;
}
- }
+ }
+ }
if(!$found)
{
/* Something is wrong with their mcrypt install
or php.ini */
@@ -73,8 +77,11 @@
$modes = @mcrypt_list_modes();
$found = False;
- while (list ($key, $value) = each ($modes))
- {
+ //while (list ($key, $value) = each ($modes))
+ if (is_array($modes))
+ {
+ foreach($modes as $key => $value)
+ {
$found = True;
/* Only show each once - seems this is a
problem in some installs */
if(!in_array($value,$listed))
@@ -92,7 +99,8 @@
$out .= '<option value="' . $value .
'"' . $selected . '>' . $descr . '</option>' . "\n";
$listed[] = $value;
}
- }
+ }
+ }
if(!$found)
{
/* Something is wrong with their mcrypt install
or php.ini */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [17630],
nelson . guerra <=