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 11:38PM
    Looks like the else area has an issue too... thanks for the report. I'll post a fix.
  • edited 11:38PM
    Yep, missed that one. You have a good eye.
Sign In or Register to comment.