When deleting the last module in FA a parce error arose
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 1 Oct 2008 23:19:53 +0000 (23:19 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 1 Oct 2008 23:19:53 +0000 (23:19 +0000)
CHANGELOG.txt
admin/inst_lang.php
admin/inst_module.php
manufacturing/view/wo_issue_view.php

index 862a35e1459c67d1ff65214a6851581b6ea69358..01d519e0d9cc038fcf8950c8bc9d9fd0e8bfa030 100644 (file)
@@ -19,6 +19,11 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+01-Oct-2008 Joe Hunt
+# When deleting the last module in FA a parce error arose:
+$ /admin/inst_module.php
+  /admin/inst_lang.php
+
 30-Sep-2008 Janusz Dobrowolski
 # Bug [0000067] Settled supplier documents were displayed as overdued.
 $ /purchasing/inquiry/supplier_inquiry.php
index 98776618fb59dfbcdde68fdb920636a58188c3d0..bd23d383f9012a323279c5b56a2643ebeea3c37e 100644 (file)
@@ -95,7 +95,8 @@ function write_lang()
        $msg .= "*/\n\n\n";
 
        $msg .= "\$installed_languages = array (\n";
-       $msg .= "\t0 => ";
+       if ($n > 0)
+           $msg .= "\t0 => ";
        for ($i = 0; $i < $n; $i++)
        {
                if ($i > 0)
index d0d8a366069a21b1bad6e61d7d7e5c1a071985d5..1e0017682268c34a541a84328421b8b90edc6f5d 100644 (file)
@@ -130,7 +130,8 @@ function write_modules()
        $msg .= "\n\n";
 
        $msg .= "\$installed_modules = array (\n";
-       $msg .= "\t0 => ";
+       if ($n > 0)
+           $msg .= "\t0 => ";
        for ($i = 0; $i < $n; $i++)
        {
                if ($i > 0)
index e3ba38bcb7358d44b97b45d708aa71f417e3de9f..b82eb3b5419c038c1d694376b39b5c6bd6a38725 100644 (file)
@@ -31,6 +31,7 @@ function display_wo_issue($issue_no)
 
     $myrow = get_work_order_issue($issue_no);
 
+       br(1);
     start_table($table_style);
     $th = array(_("Issue #"), _("Reference"), _("For Work Order #"),
        _("Item"), _("From Location"), _("To Work Centre"), _("Date of Issue"));