From 55ca4d58f0d5025ab09c1645be72849205b80217 Mon Sep 17 00:00:00 2001
From: Chris Sangwin <C.J.Sangwin@ed.ac.uk>
Date: Tue, 21 Jan 2025 08:59:00 +0000
Subject: [PATCH] Fix syntax error.

---
 stack/cas/keyval.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stack/cas/keyval.class.php b/stack/cas/keyval.class.php
index 37050bb6f..3233f5ef6 100644
--- a/stack/cas/keyval.class.php
+++ b/stack/cas/keyval.class.php
@@ -109,7 +109,7 @@ class stack_cas_keyval {
         $str = str_replace('?', 'QMCHAR', $str);
 
         // CAS keyval may not contain @ outside strings.
-        if (strpos($str, '@') !== false {
+        if (strpos($str, '@') !== false) {
             $this->errors[] = new $this->errclass(stack_string('illegalcaschars'), $this->context);
             $this->valid = false;
             return false;
-- 
GitLab