summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-04-28 19:29:41 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-04-28 19:29:41 +0200
commit2d26169b367af60cbc03d417c09918f50aa3b882 (patch)
treeb27542d3ecc6dd02fbb768297b2a097014e35d7f /src
parentbfd4763b4f831ed9eccbdd4717c98b7d95999d2e (diff)
downloadste-2d26169b367af60cbc03d417c09918f50aa3b882.tar.gz
ste-2d26169b367af60cbc03d417c09918f50aa3b882.tar.bz2
ste-2d26169b367af60cbc03d417c09918f50aa3b882.zip
Fix parser stumbling over "0" in names
PHPs type juggling strikes again :(
Diffstat (limited to 'src')
-rw-r--r--src/ste/Parser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ste/Parser.php b/src/ste/Parser.php
index 5e5ef0a..7226c60 100644
--- a/src/ste/Parser.php
+++ b/src/ste/Parser.php
@@ -89,7 +89,7 @@ class Parser {
private function take_while($cb) {
$s = "";
- while($c = $this->next()) {
+ while(($c = $this->next()) !== "") {
if(!call_user_func($cb, $c)) {
$this->back();
return $s;