News: This forum is now permanently frozen.
Pages: [1]
Topic: PHP script error in "system_groupmanager.php"  (Read 2371 times)
« on: December 19, 2012, 23:28:36 »
scooterdouglas *
Posts: 4

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

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:

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>
              } ?>

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!

Pages: [1]
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines