Correct regression around ?flush

?flush used to work. There's no reason why it shouldn't.
This commit is contained in:
Simon Welsh 2014-10-30 20:51:05 +11:00
parent c8ad29f0d7
commit 73b591a79d

View File

@ -8,7 +8,7 @@
class FlushRequestFilter implements RequestFilter {
public function preRequest(SS_HTTPRequest $request, Session $session, DataModel $model) {
if($request->getVar('flush')) {
if(array_key_exists('flush', $request->getVars())) {
foreach(ClassInfo::implementorsOf('Flushable') as $class) {
$class::flush();
}