Changeset:
2960172fd950
https://sourceforge.net/p/mrbs/hg-code/ci/2960172fd9502fb2063ff0b897fd774f96af3826
Author:
Campbell Morrison <[email protected]>
Date:
Sat Oct 22 09:41:10 2016 +0100
Log message:
Fixed undefined offset notice error when there is no query string
diffstat:
web/js/report.js.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 506fd1d7a13e -r 2960172fd950 web/js/report.js.php
--- a/web/js/report.js.php Thu Oct 20 17:14:56 2016 +0100
+++ b/web/js/report.js.php Sat Oct 22 09:41:10 2016 +0100
@@ -77,7 +77,7 @@
// performance for large tables
if (function_exists('json_encode'))
{
- list( ,$query_string) = explode('?', $HTTP_REFERER, 2);
+ $query_string = parse_url($HTTP_REFERER, PHP_URL_QUERY);
$ajax_url = "report.php?" . (empty($query_string) ? '' : "$query_string&")
. "ajax=1&phase=2";
?>
tableOptions.ajax = "<?php echo $ajax_url ?>";
------------------------------------------------------------------------------
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