Index: branches/5.2.x/units/listings/listings_event_handler.php =================================================================== diff -u -N -r15135 -r15142 --- branches/5.2.x/units/listings/listings_event_handler.php (.../listings_event_handler.php) (revision 15135) +++ branches/5.2.x/units/listings/listings_event_handler.php (.../listings_event_handler.php) (revision 15142) @@ -1,6 +1,6 @@ UpdateLink('OnPurchase', $object->GetDBField('ItemResourceId'), $object->GetDBField('ListingTypeId')); - $listtype_object =& $this->Application->recallObject('lst'); + $listtype_object = $this->Application->recallObject('lst'); if ( $listtype_object->GetDBField('OnPurchaseAddToCatEnabled') ) { - $link_object =& $this->Application->recallObject('l'); + $link_object = $this->Application->recallObject('l'); $add_to_cat = (int)$listtype_object->GetDBField('OnPurchaseAddToCat'); $sql = 'DELETE FROM '.$this->Application->getUnitOption('l-ci', 'TableName').' WHERE CategoryId = '.$add_to_cat.' @@ -204,7 +204,7 @@ $this->UpdateLink('OnExpire', $original_values['ItemResourceId'], $original_values['ListingTypeId']); - $listtype_object =& $this->Application->recallObject('lst'); + $listtype_object = $this->Application->recallObject('lst'); if( $listtype_object->GetDBField('OnExpireRemoveFromCatEnabled') ) { $remove_from_cat = $listtype_object->GetDBField('OnExpireRemoveFromCat'); @@ -219,11 +219,11 @@ function UpdateLink($action_prefix, $resource_id, $listtype_id) { - $link_object =& $this->Application->recallObject('l', null, Array('skip_autoload' => true)); + $link_object = $this->Application->recallObject('l', null, Array('skip_autoload' => true)); $link_object->Load($resource_id, 'ResourceId'); // "-item", because can be called as regular after event, and just "lst" recalls list instead - $listtype_object =& $this->Application->recallObject('lst.-item', null, Array('skip_autoload' => true)); + $listtype_object = $this->Application->recallObject('lst.-item', null, Array('skip_autoload' => true)); $listtype_object->Load($listtype_id); $action_fields = Array( 'EdPick' => 'EditorsPick', @@ -280,7 +280,7 @@ list ($link_id, $link_info) = each($l_info); $listing_type_id = $link_info['ListingTypeId']; - $listing_type =& $this->Application->recallObject('lst', null, Array('skip_autoload' => true)); + $listing_type = $this->Application->recallObject('lst', null, Array('skip_autoload' => true)); $listing_type->Load($listing_type_id); if ($listing_type->GetDBField('EnableBuying')) { @@ -375,7 +375,7 @@ } // set expiration time for listing - $listing_type =& $this->Application->recallObject('lst', null, Array('skip_autoload' => true)); + $listing_type = $this->Application->recallObject('lst', null, Array('skip_autoload' => true)); $listing_type->Load($listing_type_id); $dur_type_mapping = Array( 1 => 1, @@ -500,7 +500,7 @@ $item_data = unserialize($fields['ItemData']); $listing_id = $item_data['ListingId']; - $temp_handler =& $this->Application->recallObject($event->getPrefixSpecial().'_TempHandler', 'kTempTablesHandler'); + $temp_handler = $this->Application->recallObject($event->getPrefixSpecial().'_TempHandler', 'kTempTablesHandler'); $temp_handler->DeleteItems($event->Prefix, $event->Special, Array($listing_id)); } @@ -579,7 +579,7 @@ // extend period for pending/renewal links (if owner has agreed) if ( $event->Name == 'OnMassApprove' ) { - $lst_object =& $this->Application->recallObject('lst', null, Array ('skip_autoload' => true)); + $lst_object = $this->Application->recallObject('lst', null, Array ('skip_autoload' => true)); /* @var $lst_object kDBItem */ foreach ($ids as $id) { @@ -734,7 +734,7 @@ $expired_listings = $this->Conn->GetCol($sql); if(is_array($expired_listings) && count($expired_listings) > 0) { - $object =& $this->Application->recallObject($event->Prefix.'.-item', null, Array('skip_autoload' => true)); + $object = $this->Application->recallObject($event->Prefix.'.-item', null, Array('skip_autoload' => true)); /* @var $object kDBItem */ foreach($expired_listings as $listing_id)