rename squirrelmail_rpc.php to rpc.php, it doesn't make much sense to
[squirrelmail.git] / src / options.php
index 4350c59e8271aedda5253e26ae1a00300375e142..b13e04a045c577e56a47a17c1ad1d930b3e93159 100644 (file)
@@ -13,6 +13,9 @@
  * @subpackage prefs
  */
 
+/** This is the options page */
+define('PAGE_NAME', 'options');
+
 /**
  * Include the SquirrelMail initialization file.
  */
@@ -427,7 +430,7 @@ if ($optpage == SMOPT_PAGE_MAIN) {
     $oTemplate->assign('options', $optpage_data['options']);
     
     global $ask_user_info, $org_name;
-    if ( $optpage = SMOPT_PAGE_PERSONAL && $ask_user_info
+    if ( $optpage == SMOPT_PAGE_PERSONAL && $ask_user_info
             && getPref($data_dir, $username,'email_address') == "" ) {
         $oTemplate->assign('topmessage',
             sprintf(_("Welcome to %s. Please supply your full name and email address."), $org_name) );