From c198604aff4bdfaccb5d6a363f5e4a2a98ba416f Mon Sep 17 00:00:00 2001 From: Jonathan Ernst Date: Sun, 6 Feb 2005 22:35:58 +0000 Subject: [PATCH] Fix mysql errors in the index page --- index.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 2ec9af4..ed3753c 100644 --- a/index.php +++ b/index.php @@ -116,8 +116,8 @@ while($oRow = mysql_fetch_object($hResult)) $img = get_screenshot_img($oRow->appId); echo ' - '.$oApp->data->appName.' - '.trim_description($oApp->data->description).' + '.$oApp->sName.' + '.trim_description($oApp->sDescription).' '.$img.' '; } @@ -144,11 +144,10 @@ while($oRow = mysql_fetch_object($hResult)) $oApp = new Application($oRow->appId); // image $img = get_screenshot_img($oRow->appId); - $aDesc = explode("\n",$oApp->data->description,2); echo ' - '.$oApp->data->appName.' - '.$aDesc[0].' + '.$oApp->sName.' + '.trim_description($oApp->sDescription).' '.$img.' '; }