It looks like you're new here. If you want to get involved, click one of these buttons!
	public function add_dashboard($dashboard)
	{
		$dashboards = $this->fuel->config('dashboards');
		if (is_array($dashboard))
		{
			foreach($dashboards as $d)
			{
				if (!in_array($d, $dashbaords))  <-- variable spelled incorrectly
				{
					$dashboards[] = $d;
				}
			}
		}
		else
		{
			if (!in_array($d, $dashboard))
			{
				$dashboards[] = $dashboard;
			}
		}
		$this->fuel->set_config('dashboards', $dashboards);
	}
Comments