Jump to ContentJump to Navigation/Login
` ` ` ` ` `

[Register]

Occasional ATutor release updates


No Members Logged In

(5 guests in past 15 min.)

Access Understanding Web Accessibility to learn about accessibility, or Register to take the course for FREE.

Support Forums

ATutor Bug Reports

Error: saving changes in role and privileges


You must be signed-in to post.

AuthorSubject
  Page: 1
peter
Subject: Error: saving changes in role and privilegesQuote this post in your reply
I get the following error message when I tried to save the changes I made to roles/privileges under the Enrollment Manager. It looks like the changes did get saved though.

Warning: Invalid argument supplied for foreach() in /opt/bzone1122/html/ths01/THS01/atutor/tools/privileges.php on line 50

Warning: Cannot modify header information - headers already sent by (output started at /opt/bzone1122/html/ths01/THS01/atutor/tools/privileges.php:50) in /opt/bzone1122/html/ths01/THS01/atutor/tools/privileges.php on line 61
Posted: 2004-10-28 17:57:24
peter
Subject: Version InfoQuote this post in your reply
1.4.2 ATutor
Posted: 2004-10-28 17:58:05
peter
Subject: More detailsQuote this post in your reply
The error showed up when you tried to save it the second time.
Posted: 2004-10-28 18:03:10
greg

Avatar for greg
Subject: fixQuote this post in your reply
replace lines 50-52 in privileges.php

foreach ($_POST['privs'] as $key => $priv) {
$privilege += $key;
}

with:
if($_POST['privs']){
foreach ($_POST['privs'] as $key => $priv) {
$privilege += $key;
}
}
Posted: 2004-10-28 18:20:10
 Page: 1

You must be signed-in to post.