Commit:    032ea400f04c3431b886fbd5e84b03138589cb7f
Author:    Hannes Magnusson <[email protected]>         Wed, 22 Jan 2014 
16:59:49 -0800
Parents:   ea7631f9712422058ac2a6731aa9914fa463653e
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=032ea400f04c3431b886fbd5e84b03138589cb7f

Log:
Fix a unset notice for old cookies

Changed paths:
  M  include/prepend.inc


Diff:
diff --git a/include/prepend.inc b/include/prepend.inc
index 23cbf10..30613c3 100644
--- a/include/prepend.inc
+++ b/include/prepend.inc
@@ -170,7 +170,12 @@ function myphpnet_showug($enable = null) {
     if ($enable !== null) {
         $MYPHPNET[3] = $enable;
     }
-    return $MYPHPNET[3];
+
+    if (isset($MYPHPNET[3])) {
+        return $MYPHPNET[3];
+    }
+
+    return false;
 }
 
 // Save user settings in cookie


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to