Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

Error in add_dashboard function

edited June 2015 in Bug Reports
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); }

Can you see it?

Comments

  • edited 9:31AM
    Looks like the else area has an issue too... thanks for the report. I'll post a fix.
  • edited 9:31AM
    Yep, missed that one. You have a good eye.
Sign In or Register to comment.