public function checkRights($level) { $this->level = $level; if ($this->level != 1) return false; }
przekazuję tak :
I to właśnie nie działa. Wywala mi że nie udało się zalogować, ale wartość wynosi 1. Czemu ?
public function checkRights($level) { $this->level = $level; if ($this->level != 1) return false; }
public function checkRights($level) { $this->level = $level; if ($this->level != 1) return false; return true; }
public function checkRights($level) { $this->level = $level; if ($this->level != 1) return false; return true; }