Cleanups (fixed obscure numeric references to some sql helpers results).
[fa-stable.git] / manufacturing / work_order_entry.php
index aa13e8d5a145150765c775b812b617f918404179..4aea96fb15d8f5d3b8378e08d0e706ad44ddb1d2 100644 (file)
@@ -316,9 +316,9 @@ $existing_comments = "";
 $dec = 0;
 if (isset($selected_id))
 {
-       $myrow = get_work_order($selected_id);
+       $myrow = get_work_order($selected_id, true);
 
-       if (strlen($myrow[0]) == 0)
+       if ($myrow === false)
        {
                echo _("The order number sent is not valid.");
                safe_exit();