Version: 1.34 - built on Mon Nov 12 13:17:17 CET 2012
Platform: Soekris net5501
System -> User Manager -> Groups
Click on the
plus icon to add a new group and it produces 1,100+ warnings;
<td class="listlr">
<input name="index" type="checkbox" id="index" value="yes"
Warning: in_array(): Wrong datatype for second argument in /usr/local/www/system_groupmanager.php on line 253
></td>
Looking at the PHP script in the file
/usr/local/www/system_groupmanager.php, there seems to be a problem with the $pconfig['pages'] coding:
<?php
foreach ($pages as $fname => $title) {
$identifier = str_replace('.php','',$fname);
?>
<tr><td class="listlr">
<input name="<?=$identifier?>" type="checkbox" id="<?=$identifier?>" value="yes" <?php if (in_array($fname,$pconfig['pages'])) echo "checked"; ?>></td>
<td class="listr"><?=$title?></td>
<td class="listr"><?=$fname?></td>
</tr>
<?
} ?>
Sorry, but I know very little about PHP to help resolve this "hiccup".
I managed to create a test group with only
*Landing Page after Login (index.php) and
*User Password (system_usermanager.php) as memebers of the Group and have successfully created a test user, so functionally it appears to be OK, just disconcerting when you see 1,100+ warnings!