Skip to content

Commit

Permalink
Paul Becker (PaulT commit): Remove stray ; appearing after if, else, …
Browse files Browse the repository at this point in the history
…and foreach blocks. (Reported in forums: http://www.weberp.org/forum/showthread.php?tid=8064)

Signed-off-by: Paul Thursby <pthursby2@gmail.com>
  • Loading branch information
Paul Becker authored and timschofield committed Feb 26, 2018
1 parent a7e88bb commit 439e346
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CustItem.php
Expand Up @@ -229,7 +229,7 @@
</form>';
include ('includes/footer.php');
exit;
};
}
}

if ($Edit == true) {
Expand Down
2 changes: 1 addition & 1 deletion Factors.php
Expand Up @@ -20,7 +20,7 @@
if (isset($_POST['Create'])) {
$FactorID = 0;
$_POST['New'] = 'Yes';
};
}

echo '<div class="centre"><p class="page_title_text"><img src="'.$RootPath.'/css/'.$Theme.'/images/supplier.png" title="'
. _('Factor Companies') . '" alt="" />' . ' ' .$Title . '</p></div>';
Expand Down
2 changes: 1 addition & 1 deletion MRPPlannedPurchaseOrders.php
Expand Up @@ -333,7 +333,7 @@ function PrintHeader(&$pdf,&$YPos,&$PageNumber,$Page_Height,$Top_Margin,$Left_Ma
$displayconsolidation = _('Weekly');
} else {
$displayconsolidation = _('Monthly');
};
}
$pdf->addTextWrap($Left_Margin,$YPos,65,$FontSize,_('Consolidation').':');
$pdf->addTextWrap(110,$YPos,40,$FontSize,$displayconsolidation);

Expand Down
2 changes: 1 addition & 1 deletion MRPPlannedWorkOrders.php
Expand Up @@ -376,7 +376,7 @@ function PrintHeader(&$pdf,&$YPos,&$PageNumber,$Page_Height,$Top_Margin,$Left_Ma
$displayconsolidation = _('Weekly');
} else {
$displayconsolidation = _('Monthly');
};
}
$pdf->addTextWrap($Left_Margin,$YPos,65,$FontSize,_('Consolidation').':');
$pdf->addTextWrap(110,$YPos,40,$FontSize,$displayconsolidation);

Expand Down
6 changes: 3 additions & 3 deletions PcClaimExpensesFromTab.php
Expand Up @@ -136,7 +136,7 @@
$ReceiptExistingFiles = glob($ReceiptFileDir . '/' . $SelectedIndex . '.{' . implode(',', $ReceiptSupportedExt) . '}', GLOB_BRACE); //Find all existing receipt files for the expense, in case more than 1 file type is currently in the receipts directory
foreach($ReceiptExistingFiles as $ReceiptExistingFile) { // Overwrite existing files, and delete all other file types.
unlink($ReceiptExistingFile);
};
}
move_uploaded_file($UploadTempName, $ReceiptFilePath); //Move the uploaded file from the temp directory to the receipts directory.
}
}
Expand Down Expand Up @@ -241,7 +241,7 @@
$ReceiptExistingFiles = glob($ReceiptFileDir . '/' . $SelectedIndex . '.{' . implode(',', $ReceiptSupportedExt) . '}', GLOB_BRACE); //Find all existing receipt files for the expense, in case more than 1 file type is currently in the receipts directory
foreach($ReceiptExistingFiles as $ReceiptExistingFile) { // Overwrite existing files, and delete all other file types.
unlink($ReceiptExistingFile);
};
}
move_uploaded_file($UploadTempName, $ReceiptFilePath); //Move the uploaded file from the temp directory to the receipts directory.
}
}
Expand All @@ -268,7 +268,7 @@
$ReceiptExistingFiles = glob($ReceiptFileDir . '/' . $SelectedIndex . '.{' . implode(',', $ReceiptSupportedExt) . '}', GLOB_BRACE); //Find all existing receipt files for the expense, in case more than 1 file type is currently in the receipts directory
foreach($ReceiptExistingFiles as $ReceiptExistingFile) {
unlink($ReceiptExistingFile);
};
}
unset($_GET['delete']);
} //end of get delete
if (!isset($SelectedTabs)) {
Expand Down
2 changes: 1 addition & 1 deletion PurchData.php
Expand Up @@ -392,7 +392,7 @@
</form>';
include ('includes/footer.php');
exit;
};
}
}

if ($Edit == true) {
Expand Down
2 changes: 1 addition & 1 deletion SupplierPriceList.php
Expand Up @@ -419,7 +419,7 @@
echo '</form>';
include ('includes/footer.php');
exit;
};
}
}

if(isset($_POST['SearchSupplier'])) {
Expand Down
2 changes: 1 addition & 1 deletion SystemParameters.php
Expand Up @@ -1243,7 +1243,7 @@
} elseif ($_SESSION['QualityLogSamples'] == 1){
echo '<option select="selected" value="1">' . _('Yes') . '</option>';
echo '<option value="0">' . _('No') . '</option>';
};
}

echo '</select>
</td>
Expand Down
3 changes: 2 additions & 1 deletion doc/Change.log
@@ -1,6 +1,7 @@
webERP Change Log

27/1/17 PaulT: MiscFunctions.php, Z_ChangeStockCode.php, Z_ChangeGLAccountCode.php: Remove unused $db parameter from function ChangeFieldInTable().
27/1/18 Paul Becker (PaulT commit): Remove stray ; appearing after if, else, and foreach blocks. (Reported in forums: http://www.weberp.org/forum/showthread.php?tid=8064)
27/1/18 PaulT: MiscFunctions.php, Z_ChangeStockCode.php, Z_ChangeGLAccountCode.php: Remove unused $db parameter from function ChangeFieldInTable().
26/1/18 Andrew Galuski/Tim (PaulT merge/commit): New picking list feature for regular and controlled/serialized stock. This feature improves (and replaces) the current pick list handling. (Reported in forums by HDeriauFF: http://www.weberp.org/forum/showthread.php?tid=7988)
26/1/18 Exson: Add single quotation escape and charset in htmlspecialchars() in session.inc
26/1/18 Exson: Use htmlspecialchars() to encode html special characters to html entity and set the cookie available only httponly in session.inc
Expand Down
2 changes: 1 addition & 1 deletion includes/MiscFunctions.php
Expand Up @@ -139,7 +139,7 @@ class XmlElement {
var $attributes;
var $content;
var $children;
};
}

function GetECBCurrencyRates () {
/* See http://www.ecb.int/stats/exchange/eurofxref/html/index.en.html
Expand Down
2 changes: 1 addition & 1 deletion includes/class.pdf.php
Expand Up @@ -144,7 +144,7 @@ function addTextWrap($XPos, $YPos, $Width, $Height, $Text, $Align='J', $border=0
$ns=0;
$cw = $this->GetStringWidth($s, '', '', 0, true);
while($i<$nb) {
/*$c=$s{$i};*/

$c=mb_substr($s, $i, 1, 'UTF-8');
if($c===' ' AND $i>0) {
$sep=$i;
Expand Down
2 changes: 1 addition & 1 deletion javascripts/MiscFunctions.js
Expand Up @@ -59,7 +59,7 @@ function rLocaleNumber() {
} else {
this.setCustomValidity('The number format is wrong');
return false;
};
}
}

function assignComboToInput(c, i) {
Expand Down

0 comments on commit 439e346

Please sign in to comment.