summaryrefslogtreecommitdiff
path: root/oracles/calc.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2023-10-07 00:21:39 -0400
committerlolcat <will@lolcat.ca>2023-10-07 00:21:39 -0400
commitfa9dc4d6efc593b7301229c18b058d90024c939e (patch)
tree356c4d8a5b427e62740ea6b7524bf88e27d23c29 /oracles/calc.php
parente188ba6114f86e5a86fb79d2ac16353c159eb738 (diff)
parentf42b3a487957f4b82bea79e8ac3cb8eae37413a0 (diff)
Merge branch 'master' of https://git.lolcat.ca/lolcat/4get
Diffstat (limited to 'oracles/calc.php')
-rw-r--r--oracles/calc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/oracles/calc.php b/oracles/calc.php
index bcc127b..833749e 100644
--- a/oracles/calc.php
+++ b/oracles/calc.php
@@ -118,7 +118,7 @@ class calculator extends oracle {
if (count($tokens) > 0 && $tokens[0][0] == "o" || $tokens[count($tokens)-1][0] == "o") {
throw new Exception("Error Processing Request", 1);
}
- if (in_array(["g", "("], $tokens)) {
+ while (in_array(["g", "("], $tokens)) {
$first_open = array_search(["g", "("], $tokens);
$enclosedality = 1;
for ($i = $first_open+1; $i < count($tokens); $i++) {