diff --git a/.github/workflows/build-mariadb.yml b/.github/workflows/build-mariadb.yml index c1b71cff..ed498223 100644 --- a/.github/workflows/build-mariadb.yml +++ b/.github/workflows/build-mariadb.yml @@ -64,11 +64,16 @@ jobs: with: php-version: '7.4' tools: composer:v2 + extensions: mbstring, xml, ctype, pdo_mysql, mysql, curl, json, zip, session, filter, posix, openssl, fileinfo, bcmath, gmp, gnupg + + - name: Install composer dependencies + run: composer install --no-dev - name: Install Node.js uses: actions/setup-node@v3 with: node-version: '20.x' + - name: Install npm dependencies run: npm install diff --git a/lib/Froxlor/Validate/Form/Data.php b/lib/Froxlor/Validate/Form/Data.php index 377c5bff..6fdabed8 100644 --- a/lib/Froxlor/Validate/Form/Data.php +++ b/lib/Froxlor/Validate/Form/Data.php @@ -259,7 +259,7 @@ class Data if (preg_match($fielddata['string_regexp'], $newfieldvalue)) { $returnvalue = true; } - } else if (preg_match('/^[^\0]*$/', $newfieldvalue)) { + } elseif (preg_match('/^[^\0]*$/', $newfieldvalue)) { $returnvalue = true; }