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-22208@lists.php.net to get a copy of this message
Commit: 63fec15bf5b96d60d49396f30fd8129a3daea677 Author: Hannes Magnusson <bjori@mongodb.com> Wed, 22 Jan 2014 16:59:49 -0800 Parents: 9591a65bbdfedbc0a25e3f7e9f9fe13f2d94f93d Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=63fec15bf5b96d60d49396f30fd8129a3daea677 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 (#22208) next »