aboutsummaryrefslogtreecommitdiff
path: root/displayformula.php
diff options
context:
space:
mode:
authorJean-Michel Vedrine <vedrine@vedrine.org>2014-09-27 22:09:10 +0200
committerJean-Michel Vedrine <vedrine@vedrine.org>2014-09-27 22:10:35 +0200
commit5f1a95f9adf9f4f46ea7c7cd9b7e52e14f01add1 (patch)
tree182b1190eda7b22712f108890721a680babe9cb3 /displayformula.php
parent619af4e2371913407ffdaf25d17e2dceffdd2108 (diff)
CONTRIB-5302 CONTRIB-5303 and codechecker fixes
Diffstat (limited to 'displayformula.php')
-rw-r--r--displayformula.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/displayformula.php b/displayformula.php
index dd49486..788304b 100644
--- a/displayformula.php
+++ b/displayformula.php
@@ -32,15 +32,15 @@ global $PAGE, $CFG;
$p = new qtype_algebra_parser;
try {
- $query=urldecode($_SERVER['QUERY_STRING']);
- $m=array();
+ $query = urldecode($_SERVER['QUERY_STRING']);
+ $m = array();
if (!preg_match('/vars=([^&]*)&expr=(.*)$/A', $query, $m)) {
throw new Exception('Invalid query string received from http server!');
}
- $vars=explode(',', $m[1]);
+ $vars = explode(',', $m[1]);
if (empty($m[2])) {
- $texexp='';
+ $texexp = '';
} else {
$exp = $p->parse($m[2], $vars);
if ($CFG->qtype_algebra_texdelimiters == 'old') {