PMCORE-1194

This commit is contained in:
Paula Quispe
2022-01-24 16:48:45 -04:00
parent cbc0ea65f2
commit e25d58dd8c
5 changed files with 24 additions and 8 deletions

View File

@@ -1846,7 +1846,9 @@ class WsBase
ob_start(); ob_start();
print_r($variables); print_r($variables);
$cdata = ob_get_contents(); $cdata = ob_get_contents();
ob_end_clean(); if (ob_get_contents()) {
ob_end_clean();
}
$up_case = $oCase->updateCase($caseId, $oldFields); $up_case = $oCase->updateCase($caseId, $oldFields);
$result = new WsResponse( $result = new WsResponse(

View File

@@ -954,7 +954,9 @@ class pmTablesProxy extends HttpProxyController
} }
//ob_end_clean is used to close the ob_start opening at the beginning of this method. //ob_end_clean is used to close the ob_start opening at the beginning of this method.
ob_end_clean(); if (ob_get_contents()) {
ob_end_clean();
}
return $result; return $result;
} }

View File

@@ -43,7 +43,9 @@ switch ($request) {
} }
$x = ob_get_contents(); $x = ob_get_contents();
ob_end_clean(); if (ob_get_contents()) {
ob_end_clean();
}
/////// ///////
if ($_GET["menu"] == "plugins") { if ($_GET["menu"] == "plugins") {

View File

@@ -474,7 +474,9 @@ class ReportTable
$buildResult = ob_get_contents(); $buildResult = ob_get_contents();
ob_end_clean(); if (ob_get_contents()) {
ob_end_clean();
}
//Updating additional table struture information //Updating additional table struture information
$addTabData = [ $addTabData = [
@@ -572,7 +574,9 @@ class ReportTable
} catch (Exception $e) { } catch (Exception $e) {
$buildResult = ob_get_contents(); $buildResult = ob_get_contents();
ob_end_clean(); if (ob_get_contents()) {
ob_end_clean();
}
$result->success = false; $result->success = false;
@@ -833,7 +837,9 @@ class ReportTable
ob_start(); ob_start();
$pmTable->buildModelFor($dbsUid, $tables); $pmTable->buildModelFor($dbsUid, $tables);
$buildResult = ob_get_contents(); $buildResult = ob_get_contents();
ob_end_clean(); if (ob_get_contents()) {
ob_end_clean();
}
$errors .= $pmTable->upgradeDatabaseFor($pmTable->getDataSource(), $tables); $errors .= $pmTable->upgradeDatabaseFor($pmTable->getDataSource(), $tables);
} }

View File

@@ -379,7 +379,9 @@ class Table
} }
$pmTable->build(); $pmTable->build();
$buildResult = ob_get_contents(); $buildResult = ob_get_contents();
ob_end_clean(); if (ob_get_contents()) {
ob_end_clean();
}
unset($buildResult); unset($buildResult);
// Updating additional table struture information // Updating additional table struture information
@@ -586,7 +588,9 @@ class Table
$pmTable->build(); $pmTable->build();
$buildResult = ob_get_contents(); $buildResult = ob_get_contents();
ob_end_clean(); if (ob_get_contents()) {
ob_end_clean();
}
unset($buildResult); unset($buildResult);
$addTabData = [ $addTabData = [