From 7a2fa37283f93e1fe890fbe5de35694ae5d809af Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 8 Mar 2014 14:30:38 +0100 Subject: [PATCH] Server: removed package versions to save screen space --- server/index.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/server/index.php b/server/index.php index 094b0f740..a0f710ff3 100644 --- a/server/index.php +++ b/server/index.php @@ -451,19 +451,16 @@ function log_error($message, $my_email, $data = null) { $apps[$i] = "'" . $db->real_escape_string($apps[$i]) . "'"; $package_names = array(); - $package_versions = array(); if (count($apps)) { // Get package names - $sql = "SELECT DISTINCT package_name, package_version, package_version_code"; + $sql = "SELECT DISTINCT package_name"; $sql .= " FROM xprivacy_app"; $sql .= " WHERE application_name IN (" . implode(',', $apps) . ")"; - $sql .= " ORDER BY package_name, package_version"; + $sql .= " ORDER BY package_name"; $result = $db->query($sql); if ($result) { - while (($row = $result->fetch_object())) { + while (($row = $result->fetch_object())) $package_names[] = $row->package_name; - $package_versions[] = $row->package_version . ' (' . $row->package_version_code . ')'; - } $result->close(); } else @@ -477,7 +474,6 @@ function log_error($message, $my_email, $data = null) { for ($i = 0; $i < count($package_names); $i++) { echo ''; echo htmlentities($package_names[$i], ENT_COMPAT, 'UTF-8') . ' '; - echo htmlentities($package_versions[$i]) . ' '; } ?>