Permalink
Browse files

Minor optimisation

  • Loading branch information...
fiveminuteargument committed Mar 23, 2012
1 parent ff75fa8 commit a52a4d3616224135fe7166257e446f1c11b609a8
Showing with 2 additions and 6 deletions.
  1. +2 −6 plugins/system/cache/cache.php
@@ -55,9 +55,7 @@ function onAfterInitialise()
return;
}
- $messages = $app->getMessageQueue();
-
- if (is_array($messages) && count($messages)) {
+ if (count($app->getMessageQueue())) {
return;
}
@@ -91,9 +89,7 @@ function onAfterRender()
return;
}
- $messages = $app->getMessageQueue();
-
- if (is_array($messages) && count($messages)) {
+ if (count($app->getMessageQueue())) {
return;
}

0 comments on commit a52a4d3

Please sign in to comment.