http://www.mediawiki.org/wiki/Special:Code/MediaWiki/92522
Revision: 92522 Author: ashley Date: 2011-07-19 11:10:23 +0000 (Tue, 19 Jul 2011) Log Message: ----------- 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: trunk/extensions/SocialProfile/SystemGifts/UserSystemGiftsClass.php =================================================================== --- trunk/extensions/SocialProfile/SystemGifts/UserSystemGiftsClass.php 2011-07-19 04:58:15 UTC (rev 92521) +++ trunk/extensions/SocialProfile/SystemGifts/UserSystemGiftsClass.php 2011-07-19 11:10:23 UTC (rev 92522) @@ -208,6 +208,7 @@ array( 'system_gift' => array( 'INNER JOIN', 'sg_gift_id = gift_id' ) ) ); $row = $dbr->fetchObject( $res ); + $gift = array(); if ( $row ) { $gift['id'] = $row->sg_id; $gift['user_id'] = $row->sg_user_id; _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs