com web/php: Fix a unset notice for old cookies: include/prepend.inc

From: Date: Thu, 23 Jan 2014 01:00:33 +0000
Subject: com web/php: Fix a unset notice for old cookies: include/prepend.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-18212@lists.php.net to get a copy of this message
Commit: 032ea400f04c3431b886fbd5e84b03138589cb7f Author: Hannes Magnusson <bjori@mongodb.com> 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

« previous php.webmaster (#18212) next »