From: Antoine Musso Date: Sat, 15 Jan 2005 11:39:46 +0000 (+0000) Subject: Check probably needed. Patch by Andrew Miller X-Git-Tag: 1.5.0alpha1~930 X-Git-Url: http://git.cyclocoop.org/%24dirpuce/puce%24spip_lang_rtl.gif?a=commitdiff_plain;h=e1038e319730434e55119f8baab36726564d4d5a;p=lhc%2Fweb%2Fwiklou.git Check probably needed. Patch by Andrew Miller --- diff --git a/includes/Group.php b/includes/Group.php index e9d8da005f..9ae0718256 100644 --- a/includes/Group.php +++ b/includes/Group.php @@ -132,7 +132,8 @@ class Group { $fname = 'Group::nameFromId'; $dbr =& wfGetDB( DB_SLAVE ); $r = $dbr->selectRow( 'group', array( 'group_name' ), array( 'group_id' => $id ), $fname ); - + if ($dbr == null) + return; if($r === false) { return ''; } else {