When I installed guru 5.2.4 fresh, with no courses in the database, I get a divide by zero on the main page. The code that's causing it is below: '/administrator/components/com_guru/views/guruadmin/view.html.php' around line 160.
$sql = "select distinct(course_id) from #__guru_buy_courses";
$db->setQuery($sql);
$db->query();
$resultc = $db->loadColumn();
if(isset($resultc) && count($resultc) > 0){
$resultc = count($resultc);
}
else{
$resultc = 0;
}
if(isset($results) && isset($resultc)){
@$result = @$results / @$resultc;
}
Guess what, if you have no courses in the database, you get a divide by zero error, and the dashboard doesn't show.