cvs: phpweb / userprefs.js

[email protected] ("Hannes Magnusson")
Newsgroups php.webmaster
Message-ID <cvsbjori1227728005@cvsserver>
bjori		Wed Nov 26 19:33:25 2008 UTC

  Modified files:              
    /phpweb	userprefs.js 
  Log:
  Fixed bug#38398 (A bug in a javascript code) (patch by Kalle)
  
  
http://cvs.php.net/viewvc.cgi/phpweb/userprefs.js?r1=1.18&r2=1.19&diff_format=u
Index: phpweb/userprefs.js
diff -u phpweb/userprefs.js:1.18 phpweb/userprefs.js:1.19
--- phpweb/userprefs.js:1.18	Wed Sep  6 21:21:00 2006
+++ phpweb/userprefs.js	Wed Nov 26 19:33:25 2008
@@ -48,7 +48,9 @@
     if (navigator.userAgent.toLowerCase().indexOf('mac') > 0) {
       searchEnabled = false;
     }
-    if (myphpnet = getCookie('MYPHPNET')) {
+
+    myphpnet = getCookie('MYPHPNET');
+    if (typeof(myphpnet) == "string") {
         myphpnet_parts = myphpnet.split(",");
         if (myphpnet_parts.length > 3) {
             if (myphpnet_parts[3] == '1') {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.