Skip to content

Commit

Permalink
MDL-16438 fixed portfolio regression
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jul 4, 2009
1 parent 6c7f537 commit 98c8594
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/portfoliolib.php
Original file line number Diff line number Diff line change
Expand Up @@ -667,13 +667,14 @@ function portfolio_static_function($plugin, $function) {
function portfolio_plugin_sanity_check($plugins=null) {
global $DB;
if (is_string($plugins)) {
$plugins = array($plugins);
$plugins = array($plugins);
} else if (empty($plugins)) {
$plugins = get_plugin_list('portfolio');
$plugins = array_keys($plugins);
}

$insane = array();
foreach ($plugins as $plugin => $dir) {
foreach ($plugins as $plugin) {
if ($result = portfolio_static_function($plugin, 'plugin_sanity_check')) {
$insane[$plugin] = $result;
}
Expand Down

0 comments on commit 98c8594

Please sign in to comment.