Small fix to tassium code, if you chomp something it can never match
[squirrelmail.git] / plugins / squirrelspell / sqspell_config.php
index 2938a407a3110d9e3e5dccd96badf7f254a89eee..6bd24bcceb4c8be8abc24b1657e053bdc1f6fd8b 100644 (file)
 require_once(SM_PATH . 'functions/prefs.php');
 
 /* Just for poor wretched souls with E_ALL. :) */
-global $username, $data_dir;
+global $data_dir;
+
+if ( !check_php_version(4,1) ) {
+    global $_SESSION;
+}
+
+$username = $_SESSION['username'];
 
 /**
  * Example: