diff --git a/guest_header.php b/guest_header.php index ab0eff7d..8ce55023 100644 --- a/guest_header.php +++ b/guest_header.php @@ -1,15 +1,13 @@ diff --git a/guest_view_quote.php b/guest_view_quote.php index caeed0bc..2996c1bd 100644 --- a/guest_view_quote.php +++ b/guest_view_quote.php @@ -92,7 +92,8 @@ if ($quote_status == 'Sent') { mysqli_query($mysqli, "INSERT INTO history SET history_status = '$quote_status', history_description = 'Quote viewed - $ip - $os - $browser', history_quote_id = $quote_id"); if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Viewed") { - mysqli_query($mysqli, "INSERT INTO notifications SET notification_type = 'Quote Viewed', notification = 'Quote $quote_prefix$quote_number has been viewed by $client_name_escaped - $ip - $os - $browser', notification_action = 'quote.php?quote_id=$quote_id', notification_client_id = $client_id, notification_entity_id = $quote_id"); + + appNotify("Quote Viewed", "Quote $quote_prefix$quote_number has been viewed by $client_name_escaped - $ip - $os - $browser", "quote.php?quote_id=$quote_id", $client_id); } ?>