[art-web] [xml] Fix warnings from changes to the table structures
- From: Thomas Wood <thos src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [art-web] [xml] Fix warnings from changes to the table structures
- Date: Sat, 31 Oct 2009 22:20:16 +0000 (UTC)
commit d5ffd1fa093136bc08d003922d58c27feafdc164
Author: Thomas Wood <thos gnome org>
Date: Sat Oct 31 22:07:20 2009 +0000
[xml] Fix warnings from changes to the table structures
Changes to the table structures where not reflected in the code, so
caused warnings from PHP about undefined indexes.
xml.php | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/xml.php b/xml.php
index 531d7fe..319a454 100644
--- a/xml.php
+++ b/xml.php
@@ -38,11 +38,11 @@ function list_backgrounds($parent, $category)
{
$background_id = $row['backgroundID'];
$background_name = $row['name'];
- $background_description = $row['background_description'];
+ $background_description = $row['description'];
$background_category = $row['category'];
$background_license = $row['license'];
- $background_vote_sum = $row['vote_sum'];
- $background_vote_count = $row['vote_count'];
+ $background_vote_sum = 0; // $row['vote_sum'];
+ $background_vote_count = 0; // $row['vote_count'];
$background_release_date = $row['release_date'];
$background_download_start_timestamp = $row['download_start_timestamp'];
$background_download_count = $row['download_count'];
@@ -104,8 +104,8 @@ function list_themes($parent, $category)
$theme_category = $row['category'];
$username = $row['username'];
$theme_license = $row['license'];
- $theme_vote_sum = $row['vote_sum'];
- $theme_vote_count = $row['vote_count'];
+ $theme_vote_sum = 0; // $row['vote_sum'];
+ $theme_vote_count = 0; // $row['vote_count'];
$theme_download_start_timestamp = $row['download_start_timestamp'];
$theme_download_count = $row['download_count'];
$theme_release_date = $row['release_date'];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]