Check probably needed. Patch by Andrew Miller
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 15 Jan 2005 11:39:46 +0000 (11:39 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 15 Jan 2005 11:39:46 +0000 (11:39 +0000)
includes/Group.php

index e9d8da0..9ae0718 100644 (file)
@@ -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 {