Cleanups (fixed obscure numeric references to some sql helpers results).
[fa-stable.git] / manufacturing / includes / db / work_orders_db.inc
index 5c7210e5b8572cd5fa6c97a09cb698b12d3b561b..05ddbb6b4075247e1c7cee399f015ec0c8aac3d3 100644 (file)
@@ -130,11 +130,11 @@ function get_work_order($woid, $allow_null=false)
                AND wo.id=".db_escape($woid)."
                GROUP BY wo.id";
 
-       $result = db_query($sql, "The work order issues could not be retrieved");
+       $result = db_query($sql, "The work order could not be retrieved");
 
        if (!$allow_null && db_num_rows($result) == 0)
        {
-               display_db_error("Could not find work order $woid", $sql);
+               display_db_error("Could not find work order ".(int)$woid, $sql);
                return false;
        }