after upgrading from 2.6.6 to 2.6.7 i got the following message in my apache error log when searching:
PHP Fatal error: Call to undefined method PMF_Perm_PermBasic::getUserGroups() in /usr/local/www/phpmyfaq/inc/PMF_Search/Resultset.php on line 110
My quick and dirty fix which made it work was:
Code: Select all
--- /usr/ports/www/phpmyfaq/work/phpmyfaq-2.6.7/inc/PMF_Search/Resultset.php 2010-07-29 20:34:39.000000000 +0200
+++ inc/PMF_Search/Resultset.php 2010-08-02 09:59:39.000000000 +0200
@@ -107,8 +107,9 @@
$duplicateResults = array();
$currentUserId = $this->user->getUserId();
+ if ('medium' == PMF_Configuration::getInstance()->get('main.permLevel')) {
$currentGroupIds = $this->user->perm->getUserGroups($currentUserId);
-
+ }
foreach ($this->rawResultset as $index => $result) {
$permission = false;
Thanks,
Florian