Feilmeldinger i ACP

Diskuter MODer til phpBB 3.x her.
Svar
Brukeravatar
pippin
PhpBB-frelst
PhpBB-frelst
Innlegg: 383
Registrert: 9. mai 2006, 19:41

Feilmeldinger i ACP

Legg inn av pippin » 20. des 2009, 13:29

Feilmeldingen er [phpBB Debug] PHP Notice: in file /includes/auth.php on line 165: Uninitialized string offset: 94

Kode: Velg alt

/**
	* Look up an option
	* if the option is prefixed with !, then the result becomes negated
	*
	* If a forum id is specified the local option will be combined with a global option if one exist.
	* If a forum id is not specified, only the global option will be checked.
	*/
	function acl_get($opt, $f = 0)
	{
		$negate = false;

		if (strpos($opt, '!') === 0)
		{
			$negate = true;
			$opt = substr($opt, 1);
		}

		if (!isset($this->cache[$f][$opt]))
		{
			// We combine the global/local option with an OR because some options are global and local.
			// If the user has the global permission the local one is true too and vice versa
			$this->cache[$f][$opt] = false;

			// Is this option a global permission setting?
			if (isset($this->acl_options['global'][$opt]))
			{
				if (isset($this->acl[0]))
				{
					$this->cache[$f][$opt] = $this->acl[0][$this->acl_options['global'][$opt]];
				}
			}

			// Is this option a local permission setting?
			// But if we check for a global option only, we won't combine the options...
			if ($f != 0 && isset($this->acl_options['local'][$opt]))
			{
				if (isset($this->acl[$f]) && isset($this->acl[$f][$this->acl_options['local'][$opt]]))
				{
					$this->cache[$f][$opt] |= $this->acl[$f][$this->acl_options['local'][$opt]];
				}
			}
		}

		// Founder always has all global options set to true...
		return ($negate) ? !$this->cache[$f][$opt] : $this->cache[$f][$opt];
	}
Men ettersom jeg da er founder så skulle jeg ikke ha fått denne meldingen, men muligens det har med att jeg innstalerte users_choose_displayed_forums_1.0.1?

Og jeg får også en annen feil når jeg da skal behandle brukere

[phpBB Debug] PHP Notice: in file /includes/acp/acp_users.php on line 144: Undefined index: ACP_USER_

og kan ikke finne linjen i /language/acp

Svar