r92522 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92521‎ | r92522 | r92523 >
Date:11:10, 19 July 2011
Author:ashley
Status:ok
Tags:
Comment:
SocialProfile: fix "PHP Notice: Undefined variable: gift in ..\SocialProfile\SystemGifts\UserSystemGiftsClass.php on line 223" when trying to view a nonexistent system gift
Modified paths:
  • /trunk/extensions/SocialProfile/SystemGifts/UserSystemGiftsClass.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/SystemGifts/UserSystemGiftsClass.php
@@ -208,6 +208,7 @@
209209 array( 'system_gift' => array( 'INNER JOIN', 'sg_gift_id = gift_id' ) )
210210 );
211211 $row = $dbr->fetchObject( $res );
 212+ $gift = array();
212213 if ( $row ) {
213214 $gift['id'] = $row->sg_id;
214215 $gift['user_id'] = $row->sg_user_id;

Status & tagging log