// missing static keyword

This commit is contained in:
fBrignoli committed 2011-08-05 13:53:53 +00:00
1 parent 90fcde2539
commit 4c5104462f
1 file changed
+2 -2
+2 -2
View File
@@ -1193,12 +1193,12 @@ abstract class ModuleCore
return self::getPermissionStatic($this->id, $variable, $employee); return self::getPermissionStatic($this->id, $variable, $employee);
} }
public function getPermissionStatic($id_module, $variable, $employee = null) public static function getPermissionStatic($id_module, $variable, $employee = null)
{ {
if (!in_array($variable, array('view', 'configure'))) if (!in_array($variable, array('view', 'configure')))
return false; return false;
if (!$employee) if (!$employee)
$employee = $this->context->employee; $employee = Context::getContext()->employee;
if (!isset($cache_permissions[$employee->id_profile])) if (!isset($cache_permissions[$employee->id_profile]))
{ {
$cache_permissions[$employee->id_profile] = array(); $cache_permissions[$employee->id_profile] = array();