http://atutor.ca/atutor/mantis/view.php?id=4432
authorharris wong <hwong@ocad.ca>
Wed, 4 Aug 2010 19:51:42 +0000 (19:51 -0000)
committerharris wong <hwong@ocad.ca>
Wed, 4 Aug 2010 19:51:42 +0000 (19:51 -0000)
http://atutor.ca/atutor/mantis/view.php?id=4435
http://atutor.ca/atutor/mantis/view.php?id=4439
http://atutor.ca/atutor/mantis/view.php?id=4447

docs/mods/_core/users/edit_user.php
docs/mods/_core/users/users.php
docs/mods/_standard/tests/results_all_quest.php
docs/users/index.php

index bd38830..696d4e7 100644 (file)
@@ -258,6 +258,7 @@ if (isset($_REQUEST['ml']) && $_REQUEST['ml']) {
 \r
 /* HAVE TO SEND MEMBER_ID THROUGH FORM AS A HIDDEN POST VARIABLE!!! */\r
 /* PUT IN IF LOOP THAT LETS YOU SEE STATUS RADIO BUTTONS */\r
+$savant->assign('no_captcha', true);\r
 $savant->display('registration.tmpl.php');\r
 \r
 ?>
\ No newline at end of file
index 221cb1e..4f6642c 100644 (file)
@@ -162,8 +162,12 @@ if (defined('AT_MASTER_LIST') && AT_MASTER_LIST) {
 }
 
 $result = mysql_query($sql, $db);
-$row = mysql_fetch_assoc($result);
-$num_results = $row['cnt'];
+if ($result){
+       $row = mysql_fetch_assoc($result);
+       $num_results = $row['cnt'];
+} else {
+       $num_results = 0;
+}
 
 $results_per_page = 50;
 $num_pages = max(ceil($num_results / $results_per_page), 1);
index 89df6e1..b57ca47 100644 (file)
@@ -13,7 +13,7 @@
 // $Id: results_all_quest.php 8014 2008-10-03 13:53:03Z cindy $\r
 define('AT_INCLUDE_PATH', '../../../include/');\r
 require(AT_INCLUDE_PATH.'vitals.inc.php');\r
-require(AT_INCLUDE_PATH.'mods/_standard/tests/classes/testQuestions.class.php');\r
+require(AT_INCLUDE_PATH.'../mods/_standard/tests/classes/testQuestions.class.php');\r
 \r
 authenticate(AT_PRIV_TESTS);\r
 \r
index 456a999..b655b27 100644 (file)
@@ -94,7 +94,7 @@ function all_news_cmp($a, $b){
 }
 $all_news = array();   //all news 
 
-$module_status_bits = AT_MODULE_STATUS_DISABLED | AT_MODULE_STATUS_ENABLED | AT_MODULE_STATUS_MISSING | AT_MODULE_STATUS_PARTIALLY_UNINSTALLED;
+$module_status_bits = AT_MODULE_STATUS_ENABLED;
 $module_type_bits = AT_MODULE_TYPE_STANDARD + AT_MODULE_TYPE_EXTRA;
 
 $module_list = $moduleFactory->getModules($module_status_bits, $module_type_bits, $sort = TRUE);