From 465f5aa58a65c57b6a3edfde2d5a60e6f7a5a2d3 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Thu, 18 Jan 2007 03:21:27 +0000 Subject: [PATCH] Code changes to fix issues that appear to affect php4 but not php5 --- include/downloadurl.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/downloadurl.php b/include/downloadurl.php index 38db4c1..8a66a2f 100644 --- a/include/downloadurl.php +++ b/include/downloadurl.php @@ -303,7 +303,10 @@ class downloadurl function processFormSingle($iVersionId, $aValues, $bUnQueue = FALSE) { if($hResult = appData::getData($iVersionId, "downloadurl", TRUE, TRUE)) - $iId = mysql_fetch_object($hResult)->id; + { + $oObject = mysql_fetch_object($hResult); + $iId = $oObject->id; + } $oDownloadurl = new downloadurl($iId);