Changeset:
76e387dbcc2d
https://sourceforge.net/p/mrbs/hg-code/ci/76e387dbcc2d9f9bbef14e1d5a53e2e6436953d6
Author:
Campbell Morrison <[email protected]>
Date:
Thu Oct 06 15:59:38 2016 +0100
Log message:
Fixed undefined variable NOTICE error
diffstat:
web/functions_error.inc | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r f3a2b89b6e47 -r 76e387dbcc2d web/functions_error.inc
--- a/web/functions_error.inc Wed Oct 05 09:05:38 2016 +0100
+++ b/web/functions_error.inc Thu Oct 06 15:59:38 2016 +0100
@@ -33,9 +33,18 @@
{
if ($show_data)
{
- $body .= "MRBS GET: " . print_r($_GET, true) .
- "MRBS POST: " . print_r($_POST, true) .
- "MRBS SESSION: " . print_r($_SESSION, true);
+ if (isset($_GET))
+ {
+ $body .= "MRBS GET: " . print_r($_GET, true);
+ }
+ if (isset($_POST))
+ {
+ $body .= "MRBS POST: " . print_r($_POST, true);
+ }
+ if (isset($_SESSION))
+ {
+ $body .= "MRBS SESSION: " . print_r($_SESSION, true);
+ }
}
if (ini_get('display_errors'))
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits