http://atutor.ca/atutor/mantis/view.php?id=4571
authorharris wong <hwong@ocad.ca>
Tue, 21 Dec 2010 15:46:32 +0000 (15:46 -0000)
committerharris wong <hwong@ocad.ca>
Tue, 21 Dec 2010 15:46:32 +0000 (15:46 -0000)
docs/include/html/browse.inc.php
docs/login.php

index b15abaa..e07384d 100644 (file)
@@ -118,6 +118,11 @@ $has_categories = false;
 if ($categories_select != '<option value="0"></option>') {
        $has_categories = true;
 }
+
+if ($_SESSION['first_login']) {
+    $msg->addInfo(array('FIRST_PREFS', $_base_path.'users/pref_wizard/index.php'));
+}
+
 $savant->assign('cats', $cats);
 $savant->assign('num_results', $num_results);
 $savant->assign('has_categories', $has_categories);
index 6de26e3..937926d 100644 (file)
@@ -143,7 +143,7 @@ if (isset($this_login, $this_password)) {
                
                $_SESSION['first_login'] = false;
                if ($row['last_login'] == null || $row['last_login'] == '' || $row['last_login'] == '0000-00-00 00:00:00' 
-            || $_config['pref_defaults'] == $row['preferences']) {
+            || $_SESSION['prefs']['PREF_MODIFIED']!==1) {
                    $_SESSION['first_login'] = true;
                }