Skip to content

Commit

Permalink
Dev Fixed internal server error when no logging is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam committed Jan 23, 2013
1 parent 5f19509 commit cdc7887
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions application/views/js.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@
echo "var LS = $json";

// Disable logging.
foreach (App()->log->routes as $route)
if (isset(App()->log))
{
if ($route instanceof CWebLogRoute)
foreach (App()->log->routes as $route)
{
$route->enabled = false;
if ($route instanceof CWebLogRoute)
{
$route->enabled = false;
}
}
}
?>

0 comments on commit cdc7887

Please sign in to comment.