Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohamed Ashraf <mohamed.ashraf.213@gmail.com>2013-06-27 20:52:43 +0400
committerMohamed Ashraf <mohamed.ashraf.213@gmail.com>2013-06-27 20:52:43 +0400
commite3205f131656bddaaf31035b38681493be9779ea (patch)
treee61975ca73b399316e1ca62d3e481e2bddac18e0 /error_report.php
parent7b22b1c6fcf5b53e7c9a8b1ebb28e63c875f7f8e (diff)
Fixed conditions due to PHP gotchas
Diffstat (limited to 'error_report.php')
-rw-r--r--error_report.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/error_report.php b/error_report.php
index c3d5014e22..aae169d81d 100644
--- a/error_report.php
+++ b/error_report.php
@@ -19,7 +19,7 @@ $response = PMA_Response::getInstance();
if ($_REQUEST['send_error_report'] == true) {
send_error_report(get_report_data(false));
- if ($_REQUEST['automatic'] == true) {
+ if ($_REQUEST['automatic'] === "true") {
$response->addJSON('message', PMA_Message::error(
__('An error has been detected and an error report has been '
.'automatically submitted based on your settings.')
@@ -30,7 +30,7 @@ if ($_REQUEST['send_error_report'] == true) {
__('Thank you for submitting this report.')
. '<br />'
. __('You may want to refresh the page.')));
- if($_REQUEST['always_send'] == true) {
+ if($_REQUEST['always_send'] === "true") {
PMA_persistOption("SendErrorReports", "always", "ask");
}
}
@@ -93,9 +93,7 @@ if ($_REQUEST['send_error_report'] == true) {
*/
function get_report_data($json_encode = true) {
$report = array(
- "error_message" => $_REQUEST['message'],
- "line_number" => $_REQUEST['line'],
- "file" => $_REQUEST['file'],
+ "exception" => $_REQUEST['exception'],
"pma_version" => PMA_VERSION,
"browser_agent" => PMA_USR_BROWSER_AGENT,
"browser_version" => PMA_USR_BROWSER_VER,