Community Forums

ATutor Bug Reports

ATutor 2 beta 2 browsing error


You must be signed-in to post.

AuthorSubject
 
Page: 1
klacroix

Avatar for klacroix
Subject: ATutor 2 beta 2 browsing errorQuote this post in your reply
In reference to line 90 of /include/html/browse.inc.php

I was getting an invalid argument error on line 99 ('invalid arg for mysql_num_rows') when browsing courses anonymously.

On line 91 $_SESSION[member_id] is referenced but when I dumped the array while browsing with anonymous user I saw that in the case of anonymous users $_SESSION[member_id] is not defined.

So the sql statement ended up being:
SELECT * FROM AT_course_enrollment WHERE member_id= AND...

I just changed L99 to 'if ($result &&...' to avoid the error while I keep testing.

- Kent
Posted: 2010-06-16 15:13:53
greg

Avatar for greg
Subject: Re: ATutor 2 beta 2 browsing errorQuote this post in your reply
Thanks Kent. Reported to the bug tracker.

www.atutor.ca/atutor/mantis/view.php?id=4333
Posted: 2010-06-16 16:43:16
 
Page: 1

You must be signed-in to post.

Related Articles