// make sure the service exists for this customer if (!$obj_customer->verify_id_service_customer()) { log_write("error", "process", "The service you have attempted to edit - " . $obj_customer->id_service_customer . " - does not exist in this system."); } else { $obj_customer->load_data(); $obj_customer->load_data_service(); } } /* Check for any errors */ if (error_check()) { $_SESSION["error"]["form"]["service_delete"] = "failed"; header("Location: ../index.php?page=customers/service-delete.php&id_customer=" . $obj_customer->id . "&id_service_customer=" . $obj_customer->id_service_customer); exit(0); } else { /* Delete Service */ $obj_customer->service_delete(); // return to services page header("Location: ../index.php?page=customers/services.php&id_customer=" . $obj_customer->id); exit(0); } ///////////////////////// } else { // user does not have perms to view this page/isn't logged on error_render_noperms(); header("Location: ../index.php?page=message.php"); exit(0); }