Skip to content

Commit

Permalink
MDL-29945 incorrect logic when testing if a qtype can be uninstalled.
Browse files Browse the repository at this point in the history
Thanks to Andrew Davis for catching this during testing.
  • Loading branch information
timhunt committed Nov 11, 2011
1 parent 226b312 commit 1dd21f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/qtypes.php
Expand Up @@ -54,7 +54,7 @@
$counts[$qtypename]->numquestions = 0;
$counts[$qtypename]->numhidden = 0;
}
$needed[$qtypename] = $counts[$qtypename]->numquestions > 0 &&
$needed[$qtypename] = $counts[$qtypename]->numquestions > 0 ||
$pluginmanager->other_plugins_that_require($qtype->plugin_name());
$counts[$qtypename]->numquestions -= $counts[$qtypename]->numhidden;
}
Expand Down

0 comments on commit 1dd21f4

Please sign in to comment.