Skip to content

Commit cf83d6a

Browse files
committed
Remove debugging code
Signed-off-by: Michal Čihař <michal@cihar.com>
1 parent 6197613 commit cf83d6a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

libraries/export.lib.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@
1818
*/
1919
function PMA_shutdownDuringExport()
2020
{
21-
$a = error_get_last();
22-
if ($a != null && mb_strpos($a['message'], "execution time")) {
23-
//write in partially downloaded file for future reference of user
24-
print_r($a);
21+
$error = error_get_last();
22+
if ($error != null && mb_strpos($error['message'], "execution time")) {
2523
//set session variable to check if there was error while exporting
26-
$_SESSION['pma_export_error'] = $a['message'];
24+
$_SESSION['pma_export_error'] = $error['message'];
2725
}
2826
}
2927

0 commit comments

Comments
 (0)