From 1b70d1bb52492b6d1eb6d18b7c1e8b0d14d1f773 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 23 Nov 2012 21:18:46 +0000 Subject: [PATCH] Change the app_languages.php file to utf-8 format and adjust a few minor things in the code. --- app/voicemail_status/app_languages.php | 2 +- app/voicemail_status/v_voicemail.php | 12 ++++-------- app/voicemail_status/v_voicemail_prefs_delete.php | 3 +-- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/app/voicemail_status/app_languages.php b/app/voicemail_status/app_languages.php index 4b029d3742..284a2e96b4 100644 --- a/app/voicemail_status/app_languages.php +++ b/app/voicemail_status/app_languages.php @@ -1,4 +1,4 @@ - 0) { @@ -151,11 +150,8 @@ $order = $_GET["order"]; if ($result_count > 0) { foreach($result as $row) { -// echo "
\n";
-//		print_r($row);
-//		echo "
\n"; - $sql = ""; - $sql .= "select count(*) as count from voicemail_msgs "; + + $sql = "select count(*) as count from voicemail_msgs "; $sql .= "where domain = '".$_SESSION['domains'][$domain_uuid]['domain_name']."' "; $sql .= "and username = '".$row['extension']."' "; // $prep_statement = $db->prepare(check_sql($sql)); @@ -200,4 +196,4 @@ echo "

"; //show the footer require "includes/require.php"; require_once "includes/footer.php"; -?> +?> \ No newline at end of file diff --git a/app/voicemail_status/v_voicemail_prefs_delete.php b/app/voicemail_status/v_voicemail_prefs_delete.php index 79078a4516..7746e8f427 100644 --- a/app/voicemail_status/v_voicemail_prefs_delete.php +++ b/app/voicemail_status/v_voicemail_prefs_delete.php @@ -43,8 +43,7 @@ if (count($_GET)>0) { //delete the data if (strlen($id)>0) { - $sql = ""; - $sql .= "delete from voicemail_prefs "; + $sql = "delete from voicemail_prefs "; $sql .= "where domain = '".$_SESSION['domains'][$domain_uuid]['domain_name']."' "; $sql .= "and username = '$domain_uuid' "; $count = $db->exec(check_sql($sql));