mirror of https://github.com/rusefi/msqur.git
rm empty strings
This commit is contained in:
parent
7c541307d3
commit
75f909593f
|
@ -161,7 +161,7 @@ class INI
|
|||
case "curve": //start of new curve
|
||||
if (!empty($curve))
|
||||
{//save the last one, if any
|
||||
if (DEBUG) debug('Parsed curve: ' . $curve['id'] . '');
|
||||
if (DEBUG) debug('Parsed curve: ' . $curve['id']);
|
||||
//var_export($curve);
|
||||
$values[$currentSection][$curve['id']] = $curve;
|
||||
}
|
||||
|
@ -239,7 +239,7 @@ class INI
|
|||
case "table": //start of new curve
|
||||
if (!empty($table))
|
||||
{//save the last one, if any
|
||||
if (DEBUG) debug('Parsed table: ' . $table['id'] . '');
|
||||
if (DEBUG) debug('Parsed table: ' . $table['id']);
|
||||
//var_export($curve);
|
||||
$values[$currentSection][$table['id']] = $table;
|
||||
}
|
||||
|
|
14
src/msq.php
14
src/msq.php
|
@ -106,10 +106,10 @@ class MSQ
|
|||
{
|
||||
if (in_array($curve['id'], $this->msq_curve_blacklist))
|
||||
{
|
||||
if (DEBUG) debug('Skipping curve: ' . $curve['id'] . '');
|
||||
if (DEBUG) debug('Skipping curve: ' . $curve['id']);
|
||||
continue;
|
||||
}
|
||||
else if (DEBUG) debug('Curve: ' . $curve['id'] . '');
|
||||
else if (DEBUG) debug('Curve: ' . $curve['id']);
|
||||
|
||||
//id is just for menu (and our reference)
|
||||
//need to find xBin (index 0, 1 is the live meatball variable)
|
||||
|
@ -130,14 +130,14 @@ class MSQ
|
|||
$yAxis = preg_split("/\s+/", trim($yBins));
|
||||
$html["curves"] .= $this->msqTable2D($curve, $curve['xMin'], $curve['xMax'], $xAxis, $curve['yMin'], $curve['yMax'], $yAxis, $help);
|
||||
}
|
||||
else if (DEBUG) debug('Missing/unsupported curve information: ' . $curve['id'] . '');
|
||||
else if (DEBUG) debug('Missing/unsupported curve information: ' . $curve['id']);
|
||||
}
|
||||
|
||||
$html["pretables"] = '<div class="group-header">3D Tables</div>';;
|
||||
$html["tables"] = "";
|
||||
foreach ($tables as $table)
|
||||
{
|
||||
if (DEBUG) debug('Table: ' . $table['id'] . '');
|
||||
if (DEBUG) debug('Table: ' . $table['id']);
|
||||
|
||||
$help = NULL;
|
||||
if (array_key_exists('topicHelp', $table))
|
||||
|
@ -155,7 +155,7 @@ class MSQ
|
|||
$zData = preg_split("/\s+/", trim($zBins));//, PREG_SPLIT_NO_EMPTY); //, $limit);
|
||||
$html["tables"] .= $this->msqTable3D($table, $xAxis, $yAxis, $zData, $help);
|
||||
}
|
||||
else if (DEBUG) debug('Missing/unsupported table information: ' . $table['id'] . '');
|
||||
else if (DEBUG) debug('Missing/unsupported table information: ' . $table['id']);
|
||||
}
|
||||
|
||||
$html["preconstants"] = '<div class="group-header">Constants</div>';
|
||||
|
@ -240,7 +240,7 @@ class MSQ
|
|||
|
||||
//var_export($curve);
|
||||
|
||||
//if (DEBUG) debug('Formatting curve: ' . $curve['id'] . '');
|
||||
//if (DEBUG) debug('Formatting curve: ' . $curve['id']);
|
||||
|
||||
$dataCount = count($xAxis);
|
||||
if ($dataCount !== count($yAxis))
|
||||
|
@ -282,7 +282,7 @@ class MSQ
|
|||
$rows = count($yAxis);
|
||||
$cols = count($xAxis);
|
||||
|
||||
//if (DEBUG) debug('Formatting table: ' . $table['id'] . '');
|
||||
//if (DEBUG) debug('Formatting table: ' . $table['id']);
|
||||
|
||||
$dataCount = count($zBins);
|
||||
if ($dataCount !== $rows * $cols)
|
||||
|
|
|
@ -141,7 +141,7 @@ class Msqur
|
|||
public function view($id)
|
||||
{
|
||||
$this->header();
|
||||
if (DEBUG) debug('Load MSQ: ' . $id . '');
|
||||
if (DEBUG) debug('Load MSQ: ' . $id);
|
||||
//Get cached HTML and display it, or reparse and display (in order)
|
||||
$html = $this->getMSQ($id);
|
||||
if ($html !== null)
|
||||
|
|
Loading…
Reference in New Issue